useCallback vs. useMemo

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

--------------------------------------------------------------

What is the difference between useCallBack and useMemo?

When should you use useMemo and useCallback?

In this video tutorial you’ll learn how to use these two React hooks and see some real-world examples.

-------------------------------------------------------------

Follow all of these to become a 10x developer:

And remember to subscribe here on YouTube now!
--------------------------------------------------------------

--------------------------------------------------------------

--------------------------------------------------------------

Chapters:

00:00 useCallback vs. useMemo definition
00:51 First-class functions
01:50 Higher-order functions
02:29 Referential equality
05:09 Memoization
06:16 useCallback vs. useMemo API reference
07:32 Real-world useCallback vs useMemo example
07:49 Why useCallback and useMemo?
09:41 useCallback example
10:10 useMemo example
Рекомендации по теме
Комментарии
Автор

Hope you found this video helpful!

What topic would you like to learn next? Drop it in the comments below and I might make a video about it!

JanHesters
Автор

I hope you can do one on callback functions. I have hard figuring when I should use them and what I'm really doing with them. And Another one with currying. You're filter with currying is great and I'd like to know them better as well

kaicooper
Автор

Wow, i have been watching react videos three years now, and this is the first time someone explain how things actually work in the right terms and words, I learned a lot of things from this video other than useCallback and useMemo (will watch the video few times just to memorize everything).
please please always be like that, we don't need other youtuber who only reads obvious examples.

Joe-ka
Автор

please talk more about react in that deep way, can be anything, but i have especially interest in how it works under the hood, fiber, reconciliation algorithm and so on

tqvsdpu
Автор

Great content but the variable names are a bit confusing, try to use different names so that it's easy for us to distinguish between them.

manojkumars