Back to Browse

useCallback vs. useMemo

6.3K views
Jul 4, 2024
11:19

Want to hire a senior React developer? https://www.reactsquad.io/jan now! If you’re expanding your team and need to hire React developers book your free discovery call today! 👉 https://www.reactsquad.io/schedule-a-call 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: • Twitter - https://twitter.com/janhesters • Jan Hesters - https://janhesters.com/ • LinkedIn - https://www.linkedin.com/in/jan-h-7562ba166/ And remember to SUBSCRIBE here on YouTube now! 👋 If you’re new to my channel, my name is Jan Hesters. I’m the CTO of ReactSquad.io. It’s a marketplace of vetted senior React developers for SaaS companies. We provide developers to dozens of companies, including some in the Fortune 500. 📧 For any questions or inquiries regarding this video, or working with Jan Hesters & ReactSquad, please reach out to: [email protected] 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

Download

1 formats

Video Formats

360pmp425.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

useCallback vs. useMemo | NatokHD