Uploaded May 2025 | Updated September 2026, 1 week ago
5 useState mistakes that even experienced React developers make.
Starting code: github.com/codinginflow/usestate-mistakes
Final code: github.com/codinginflow/usestate-mistakes/tree/solutions
⭐ Get my full-stack Next.js with Express & TypeScript course: codinginflow.com/nextjs
✅ Get my free React Best Practices course: codinginflow.com/reactbestpractices
💌 Join my newsletter for regular web dev tips: codinginflow.com/newsletter
💬 Join our developer community on Discord: codinginflow.com/discord
📣 Follow Coding in Flow on social media:
Twitter: twitter.com/codinginflow
Instagram: instagram.com/codinginflow
TikTok: tiktok.com/@codinginflow
Facebook: facebook.com/codinginflow
Timestamps:
0:00 - Introduction & sample code
0:54 - Mistake 1: Calling the initializer function
3:31 - Mistake 2: Resetting component state incorrectly
8:02 - Mistake 3: When and when not to use the updater function
12:41 - Mistake 4: Not deriving state
15:45 - Mistake 5: Managing form state incorrectly
5 useState mistakes that even experienced React developers make.
Starting code: github.com/codinginflow/usestate-mistakes
Final code: github.com/codinginflow/usestate-mistakes/tree/solutions
⭐ Get my full-stack Next.js with Express & TypeScript course: codinginflow.com/nextjs
✅ Get my free React Best Practices course: codinginflow.com/reactbestpractices
💌 Join my newsletter for regular web dev tips: codinginflow.com/newsletter
💬 Join our developer community on Discord: codinginflow.com/discord
📣 Follow Coding in Flow on social media:
Twitter: twitter.com/codinginflow
Instagram: instagram.com/codinginflow
TikTok: tiktok.com/@codinginflow
Facebook: facebook.com/codinginflow
Timestamps:
0:00 - Introduction & sample code
0:54 - Mistake 1: Calling the initializer function
3:31 - Mistake 2: Resetting component state incorrectly
8:02 - Mistake 3: When and when not to use the updater function
12:41 - Mistake 4: Not deriving state
15:45 - Mistake 5: Managing form state incorrectly










