Tags | redux combineReducers |
Hard Prerequisites | |
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content. | |
|
Often Redux is tied to pretty complicated applications. There are often many pages, widgets and whatnots that need to be controlled. As things get complicated your reducer can get really really big.
That’s why redux has a thing called CombineReducers, it lets you split things up a bit.
Create a few separate reducers to control different things. You could have a separate reducer per room, or you could have a separate reducer for each major function (eg: you could have a “lighting” reducer that controls the lights for the whole house).
Demonstrate your understanding of combineReducers
.
Make sure that you organise your code according to the architectural guidelines already covered here:
TOPIC: React + Redux architectural guidelinesIt’s likely that you will need to refactor a lot of your work.