1. React
  2. dotJS
  3. 2019
  4. State of Components

Editor's Choice

State of Components

Pros and cons of creating class and function components in React vs Vue vs Svelte.

Evan You at dotJS 2019

For a period of time, most of the mainstream frontend frameworks have converged on a class-or-semi-class-based model for declaring components. However, in the past year, we are seeing some new ideas emerging regarding how stateful logic inside components are declared, managed and composed. Evan examines three different approaches: React Hooks, Vue Composition API, and Svelte 3. They share a common departure from the class-based models, but also have fundamental differences due to the trade-offs in their respective designs, which he discusses in this talk.