diff --git a/redux.md b/redux.md index 22b0f8e72..9c17ea3f5 100644 --- a/redux.md +++ b/redux.md @@ -26,6 +26,13 @@ function counter (state = { value: 0 }, action) { } } ``` +### Combine Reducers + +```js +// Combine Reducers into one whole Reducer with combineReducers function +const counterApp = combineReducers({counter,otherReducer,anotherReducer}); +// You can list down reducers here and thanks to ES6 Object literal, we have to only pass key(if key and value are same). +``` ```js let store = createStore(counter)