Are You Making This React State Mistake?

JavaScript / Web 95.2K צפיות 27/09/2022
פתח ב-YouTube

דרג סרטון זה

התחבר כדי לדרג

תיאור

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

#Web Dev Simplified