useCallback STOPS this React MISTAKE | useCallback React Hooks Tutorial

preview_player
Показать описание

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.

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:

🔗 React Dev Tools Extension for Chrome:

📚 References:

✅ Follow Me:

Was this tutorial about the React hook useCallback helpful? If so, please share. Let me know your thoughts in the comments.

#usecallback #react #hooks
Рекомендации по теме
Комментарии
Автор

This is what a real tutorial should be like. Not just blindly copy/pasting code but explaining the inner workings of stuff. Thanks man!

ivanshoshkov
Автор

Amazing content! There isn't much advanced React content on YouTube. So glad you make this one :)

chunli
Автор

It is the best explanation of React hooks I've ever seen on Youtube. Thank you, Dave! Starting from the very first step, you highlight the key elements of the issue and describe how it can be resolved.

andreysemenov
Автор

I love your way of explaining things Dave. I am following a React course on Udemy, and i always end up at your channel to get a better understanding of al the React topics. Your explanation is just simple, and your not "over" explaining things. Thanks, and keep up making this valuable content!

haikoerinkveld
Автор

About time. I actually came for a refresher after watching your other videos. Your Redux Toolik playlist is what introduced me to your channel. Thanks to that I have implemented RTK Query instead of using Axios interceptors for a project I am currently working on. keep it up

ephratanebiyu
Автор

Wow! The expiations open my eys to understand how the sum functions are created repeatedly. Awesome!

slowcoding
Автор

I am new to react. And I was struggling to fix this maximum depth exceeded errors. Now I got a clear idea on how to fix them. Thanks

naganikhilbijjala
Автор

Thank you Dave I really appriciate this content.

EdyLopez-on
Автор

This is the clearest explanation video I have ever watched. Thanks

SayHi-yj
Автор

Wonderful topic treated by a wonderful teacher.
All these years I have remained a beginner until I came across your channel and I am very excited about stepping up my skill set to advanced react developer 😎

brilliantatosam
Автор

I'm so glad I found your channel. I really appreciate the great tutorials. Thank you!

rodanus
Автор

THANKS A LOT!!! Perfect explanation! 😍

sinxenon
Автор

Thanks Dave, that was very helpful,
One must learn about react component lifecycle in order to not fall into such mistake,

BTW, Congrats for the 10K+ subs and hope to reach 100K soon 💯🎉

ahmad-murery
Автор

I really wish I had found an instructor like you earlier!

viditgoel
Автор

awesome video Dave, , thank you so much

okskaren
Автор

Crystal clear explanation. Thank you so much sir ❤️

nahidfaraji
Автор

for that van helen signature guitar, I should have known from the beginning that your content is gold.

allin.teamtube
Автор

you are incredible. I am grateful that I found your channel

rajeshj
Автор

You are a very good teacher Dave. Appreciate your work. Kudos

bishalkandel
Автор

Thanks Dave, this gave me detailed knowledge about useCallback hook.

mbmahesh