The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Use Two Reducers Together

Use Two Reducers Together

1:38
Reducers can easily be used inside one another to update related state. This lesson shows how you can use the clock reducer inside of the people reducer to create the time for each new person.
Watch this lesson now
Avatar
egghead.io

Reducers can easily be used inside one another to update related state. This lesson shows how you can use the clock reducer inside of the people reducer to create the time for each new person.

Avatar
EggheadAB

At 0:23 of lesson 13, where you have added a default value for the 'type' property of the action, I have also had to add a default value for 'property'.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?