Chapter quiz · The Hooks Library

Test what you learned.

8 questions on The Hooks Library. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Hooks Library — Chapter Quiz

Eight questions on built-in hooks and custom hooks.

0/ 8
  1. Question 1
    1

    Where can you legally call a hook?

  2. Question 2
    2

    Mutating ref.current triggers a re-render.

  3. Question 3
    3

    What does useMemo(fn, deps) do?

  4. Question 4
    4

    When is useCallback actually useful?

  5. Question 5
    5

    Two components want to share the same theme value. Which is the right tool?

  6. Question 6
    6

    A custom hook is named…

  7. Question 7
    7

    Two components calling useOnlineStatus() share the same state.

  8. Question 8
    8

    For complex state logic with many transitions, the upgrade from useState is _________.

Pick an answer — instant feedback as you go.