DEV Community

Discussion on: 3 React Mistakes Junior Developers Make With Component State

Collapse
 
kacperturon profile image
Kacper Turon

Mistake Junior React Devs make is using component classes instead of hooks and useState

Collapse
 
thawkin3 profile image
Tyler Hawkins

Ehh... sort of. Hooks are cool and solve a lot of problems and frustrations people have had with class components, but class components are here to stay, at least for now. It's very likely that any developer working on a codebase that existed before hooks were released will be dealing with class components, so it's still important to understand how state works with class components.

Collapse
 
thawkin3 profile image
Tyler Hawkins

Just for you, I wrote a similar article now, but this time with function components and the useState hook. ;)

dev.to/thawkin3/3-mistakes-junior-...