The difference between React class and function components in regards to state management.
0:00 Silence
0:06 Overview
0:14 Initial Code
0:24 Create class component
2:39 Class initial state
3:16 Class setState with event handler
5:03 Button onClick
5:16 Class state working
5:23 Refactor class to ES6
6:01 Create function component
7:31 Function useState hook
8:33 Function initial state
9:20 Function event handler
10:02 Function state working
10:12 Difference between class and function state
11:07 Refactor function component state
12:33 Conclusion
Links:
► Blog post: https://b.remarkabl.org/2QsfmBl
► CodeSandbox demo: https://b.remarkabl.org/3tGMTGk
► State and Lifecycle: https://reactjs.org/docs/state-and-li...
► Using the State Hook: https://reactjs.org/docs/hooks-state....
remarkablemark:
► Subscribe: https://b.remarkabl.org/subscribe
► Support: https://b.remarkabl.org/support
► Discord: https://b.remarkabl.org/discord
► Site: https://b.remarkabl.org/mark
En esta página del sitio puede ver el video en línea React state comparison: Class vs Function de Duración hora minuto segunda en buena calidad , que subió el usuario remarkablemark 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 129 veces y le gustó 2 a los espectadores. Disfruta viendo!