Are You Making This React State Mistake?
Web Dev Simplified
React state is complex enough to understand how it works, but it is even harder to write good state code in React. I oftentimes see developers using global state for nearly everything in React and that leads to a ton of problems. In this video I talk about how local state is almost always better to use and how you can spot bad state practices.
š Materials/References:
Local State Blog Article: https://blog.webdevsimplified.com/2019-12/always-prefer-local-state React/TypeScript Nested Comments Video: https://youtu.be/lyNetvEfvT0
š Find Me Here:
My Blog: https://blog.webdevsimplified.com My Courses: https://courses.webdevsimplified.com Patreon: https://www.patreon.com/WebDevSimplified Twitter: https://twitter.com/DevSimplified Discord: https://discord.gg/7StTjnR GitHub: https://github.com/WebDevSimplified CodePen: https://codepen.io/WebDevSimplified
ā±ļø Timestamps:
00:00 - Introduction 00:32 - Simple Example 02:34 - Form Example 07:00 - Handling Shared State
#React #WDS #ReactState ... https://www.youtube.com/watch?v=NZqMVUEiDIw
84795188 Bytes