QuizNot attempted
Reducer returns the same state
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
- Logs, but component does NOT re-render (same reference returned, bails out)
- React calls the reducer while re-rendering
App, so it logs - it returns the same state reference, so React bails out: no children re-render and nothing is committed.
- Not 're-renders': an identical state reference means no committed update.
- Not 'doesn't log': the reducer must run to know the result is unchanged.
- Not 'throws':
defaultreturns state, it doesn't throw.