useCallback STOPS this React MISTAKE | useCallback React Hooks Tutorial

Dave Gray ‱ November 19, 2021
Video Thumbnail

About

Web Development tutorials with full courses on HTML, CSS, JavaScript, React, Node.js and more! My goal is to help you learn how to build the web. Teaching helps me learn, too. I work full-time as a Solutions Architect / Developer and part-time as a university web dev instructor. Thank you for subscribing, supporting my channel and sharing the videos you think may help others. Keep striving for progress over perfection. And a little progress every day goes a very long way. Milestones: July 20, 2020 - 1st video Jan 1, 2021 - 1k subs April 2021 - 4k watch hours Nov 2021 - 10k subs Jan 21, 2022 - Video at 100k views Feb 16, 2022 - 100k watch hours Feb 19, 2022 - 1m views Dec 13, 2022 - 100k subs Dec 2022 - Over 1m views in 1 month April 7, 2023 - 10m views May 26, 2023 - 1m watch hours Sept 22, 2023 - Video at 1m views Dec 25, 2023 - 250k subs

Video Description

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap In this useCallback React Hooks tutorial, you will learn how to implement useCallback to avoid a common re-rendering React mistake! You will also learn about referential equality in Javascript and why it is so important to understand with the useCallback React hook. đŸš© Subscribe ➜ https://bit.ly/3nGHmNn 🚀 React JS for Beginners full course - 9 hours: https://youtu.be/RVFAyFWO4go 🔗 Source Code: https://github.com/gitdagray/usecallback_tut useCallback STOPS this React MISTAKE | useCallback React Hooks Tutorial (00:00) Intro (00:11) Welcome and Overview (00:22) Referential Equality (02:41) An example without referential equality (06:27) A mistake that is easy to make (08:28) Adding referential equality with useCallback (10:08) Frequent uses of the useCallback hook (11:02) The endless rendering loop problem (13:59) Preventing an endless rendering loop with useCallback 🔗 ES7 React JS Snippets Extension for VS Code: https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets 🔗 React Dev Tools Extension for Chrome: https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi 📚 References: ReactJS Official site: https://reactjs.org/ React Wikipedia: https://en.wikipedia.org/wiki/React_(JavaScript_library) React Jobs: https://www.ziprecruiter.com/candidate/search?search=react&location= ✅ Follow Me: Twitter: https://twitter.com/yesdavidgray LinkedIn: https://www.linkedin.com/in/davidagray/ Blog: https://yesdavidgray.com Reddit: https://www.reddit.com/user/DaveOnEleven Was this tutorial about the React hook useCallback helpful? If so, please share. Let me know your thoughts in the comments. #usecallback #react #hooks

You May Also Like