How Redux Moves Data: The One-Way Cycle

Hands-on practice for this lecture. Write the code, see it run, understand the pattern.

1

Exercise 1 of 1

Wire the Redux Cycle

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.

  1. Uncomment the DEPOSIT case
  2. Uncomment the WITHDRAW case
  3. Click both buttons and watch the Dispatch Log
Loading editor…
Practice: How Redux Moves Data: The One-Way Cycle — Interactive Exercises | Durgesh Rai