QuizNot attempted
React.memo with useCallback
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
- 1
useCallback(fn, [])returns the same function every render, soMemoChild's props are shallow-equal and memo skips it: only the mount render logs.- Not 4 or 3: those are the outcomes without a stable callback.
- Not 2: no click changes any prop of the child.