Refactoring Skypey to Use Multiple Reducers
Explore how to break down the state object into multiple reducers by creating separate user and contacts reducers. Learn to combine reducers using Redux's combineReducers to maintain a clear and effective state structure in your Skypey app.
We'll cover the following...
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 ...