Created
November 24, 2017 19:47
-
-
Save nomanHasan/6fa02ebdb3722fb63b8a1601eae5c6f2 to your computer and use it in GitHub Desktop.
RootReducer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {combineReducers} from 'redux' | |
import {TodoListReducer} from '../todos/reducers/todoReducer' | |
//One root reducer for the whole app. This is done so that the app will have one single reducer to manage lots of other resources. | |
// And also communication between the reducers will be easier to maintain. | |
const rootReducer = combineReducers({ | |
todos: TodoListReducer | |
}) | |
export default rootReducer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment