Reviewing React hooks

Learn about the importance of reusability of popular React hooks and how custom hooks encapsulate logic for sharing between components.

Overview of React hooks

We have seen quite a few hooks provided by React. Let's take a moment to review what we have learned so far:

  • Update a state with the useState hook.useState_hook

  • Handle a side effect with the useEffect hook.useEffect_hook

  • Reuse the last value with the useMemo hook.useMemo_Hook

  • Update an area with the useContext hook.useContext_Hook

  • Hide stuff from display with the useRef hook.useRef_Hook

Get hands-on with 1200+ tech skills courses.