Trying to learn the React useMemo hook?! Look no further! This video will teach you the ins and outs of memoizing values in React, why you'd want to do this and more. The useMemo hook is a very common React JS interview question so it's an important one to study up on!
This video will walk you through an example of using useMemo with theme state updating the component along the way.
Important Links
The React JS useEffect Hook:
• React JS Tutorial #7: the useEffect Hook
The React JS useState Hook:
• React JS Tutorial #6: the useState Hook
Full React JS Beginner Tutorial: • React JS Full Tutorial
Full JavaScript Tutorial: • JavaScript Tutorials
00:00 Intro: useMemo() hook
00:10 useMemo() Example explanation w/ state
01:30 Memoizing expensiveCalculation / eeveeAge
02:45 useMemo & Dependency arrays
04:10 useMemo & a dependency array with state
02:25 Getting the context from the useContext() hook
03:11 Rewriting prop drilling with the useContext value
03:40 Are State Management Tools like Redux Needed?
03:38 Are State Management Tools like Redux Needed?
03:48 useContext Tips: Don't bloat the app/consider a refactor
04:20 useMemo & Interviews
04:37 Memoizing can negatively impact Performance
05:02 Outro & Thank you :)
Watch video React JS Tutorial #11: the useMemo Hook online without registration, duration hours minute second in high quality. This video was added by user Code Emily 29 August 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 110 once and liked it 11 people.