Use Two Reducers Together

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

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.

~ 4 years ago

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'.