Quiz
Hooks
10 questions
useEffect, useMemo, useCallback, and the correct mental model
01useEffect with an empty dependency array [] runs...
02What is the difference between useMemo and useCallback?
03When does it make sense to use useReducer instead of useState?
04What is the difference between useEffect and useLayoutEffect?
05What does React.memo do?
06How do you consume a Context with hooks?
07When does it make sense to extract logic into a custom hook?
08What does useDeferredValue do?
09What does useImperativeHandle solve?
10What problem does useTransition solve?
Was this helpful?
Sign in to give feedback
