Combines section reducers
npm install combine-section-reducerscombineSectionReducers
====
One of the best ways to create a big reducer.

npm install --save combine-section-reducers(sectionState, action, state) => newSectionState combineReducers and combineSectionReducers together. (state, action, entireState) => newState combineSectionReducers is the same as Redux's combineReducers's one. combineSectionReducers can be used as not only a normal reducer but also a section reducers.javascript
import { combineReducers } from 'redux'
import combineSectionReducers from 'combine-section-reducers'// Create a big reducer.
combineSectionReducers({
a: combineSectionReducers({
a: sectionReducerA,
b: sectionReducerB
}),
b: combineSectionReducers({
a: sectionReducerC,
b: reducerA
})
})
// Use combineReducers together.
combineReducers({
a: combineSectionReducers({
a: combineReducers({
a: sectionReducerA,
b: reducerA
},
b: combineSectionReducers({
a: sectionReducerB,
b: reducerB
},
}),
b: combineReducers({
a: combineReducers({
a: sectionReducerC,
b: reducerC
},
b: combineSectionReducers({
a: sectionReducerD,
b: reducerD
},
}),
})
``