DEV Community

loading...

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

Collapse
codybrewer profile image
CodyBrewer

I've been working with React for nearly two years now and this helped me so much! I've never broken through on when to use prevState with setState your example really helped click. Now I've got some button states to go fix :)

Collapse
thawkin3 profile image
Tyler Hawkins Author

Glad I could help!