MENU

Fun & Interesting

This One Line Of Code Catches React Bugs For You

Web Dev Simplified 62,625 2 years ago
Video Not Working? Fix It Now

FREE React Hooks Simplified Course: https://courses.webdevsimplified.com/react-hooks-simplified StrictMode in React was a bit controversial when it was first introduced because of how it impacted how nearly everything in React works when in development. This was quite confusing at first, but over the years since StrictMode has launched React introduced many changes to help streamline the process. In this video I talk about what StrictMode is, what it does for you, and why it is crucial to writing clean React code. 📚 Materials/References: FREE React Hooks Simplified Course: https://courses.webdevsimplified.com/react-hooks-simplified 🌎 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:45 - What Is StrictMode 02:12 - Detect unintended side effects 09:12 - Detect mount/unmount side effects 12:01 - Detect deprecated class lifecycle methods 13:13 - Detect string refs 14:22 - Detect findDOMNode usage 15:05 - Detect legacy context #ReactJS #WDS #StrictMode

Comment