...
/Refactoring Skypey to Use Multiple Reducers
Refactoring Skypey to Use Multiple Reducers
Here, we'll implement the use of multiple reducers by making separate files for each field e.g. contacts, user etc. and then merging them into one combined reducer.
We'll cover the following...
In the last lesson, we decided to make use of multiple reducers to handle all the fields in the state object:
Now, for every field in the state object, we will create a corresponding reducer. The current ones at this stage are, contacts and user.
Let’s go over how this affects our code first, then I’ll take a step back to explain how it works again.
Take a look at ...