Please Master These 7 React Hooks

Опубликовано: 24 Октябрь 2024
на канале: Ben Haig
163
8

I would guess in 99% of the projects I work on, I can get away with only using the following hooks. If you master these hooks, you are one step closer to becoming a React master!

Read more about each:
useState() - https://react.dev/reference/react/use...
useEffect() - https://react.dev/reference/react/use...
useRef() - https://react.dev/reference/react/useRef
useMemo() - https://react.dev/reference/react/use...
useCallback() - https://react.dev/reference/react/use...
useContext() - https://react.dev/reference/react/use...
useReducer() - https://react.dev/reference/react/use...

00:00 - Intro
00:17 - useState()
01:52 - useEffect()
05:10 - useRef()
10:39 - useMemo()
13:50 - useCallback()
18:27 - useContext()
23:52 - useReducer()