Skip to content

React Hooks Advanced Patterns Practice Exam

Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.

📝 50 questions · ⏱ 60 minutes · 🎯 Pass mark 70% · 🆓 Free, no signup

Exam details

  • 50 questions drawn from 224 cards
  • Countdown timer — auto-submits when time runs out
  • Pass mark 70% (real certification threshold)
  • Full review of wrong answers at the end
  • No signup required — save your score with a free account

Sample Questions

5 shown

Why does useEffect run twice in dev?

Show ▼

Strict Mode mounts → unmounts → remounts to catch bugs from missing cleanups. Production runs effects once per mount.

Common cause of infinite useEffect loop?

Show ▼

Updating state inside the effect with a dep that changes when state updates. Memoize the value or remove from deps if it doesn't need to trigger.

How does useCallback help?

Show ▼

Returns the same function reference unless deps change — avoids re-rendering children that take it as a prop and use memo().

useMemo vs useCallback?

Show ▼

useMemo(f, d): memoizes a value (the result of f()).
useCallback(f, d): memoizes the function itself. Equivalent to useMemo(() => f, d).

useRef common uses?

Show ▼

Mutable container that doesn't trigger re-render: DOM nodes, timers, latest-value pattern, instance variables.

🎯 Take the React Hooks Advanced Patterns Practice Exam