QuizNot attempted
useReducer lazy init
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
- 1
- The third argument
initis called once on mount asinit(start) - later dispatches and re-renders reuse the stored state, so it logs once.
- Not 3 or 4: init isn't called per render or per dispatch.
- Not 0: it must run to produce the initial state.