Explain it in 60 seconds
useMemo and useCallback
Frontend Engineering · React · Intermediate
What do useMemo and useCallback do, and when should you use them?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- useMemo caches computed value.
- useCallback caches function identity.
- Recompute when dependencies change.
- Useful for expensive calcs and stable props to memo children.
- Not free; don't overuse. React Compiler can automate.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.