Hands-on practice for this lecture. Write the code, see it run, understand the pattern.
Exercise 1 of 1
The bank reducer is missing two cases. Click Deposit — nothing happens. Fix the reducer, watch the Dispatch Log, and see the full dispatch → reducer → state → re-render cycle fire live.
Task
Click Deposit $500. The balance does not change. Open store.js and look at the reducer.
Uncomment the two missing cases so every dispatch flows through the full Redux cycle and the Dispatch Log shows the balance updating.
DEPOSIT caseWITHDRAW case