Skip to content

Instantly share code, notes, and snippets.

@nomanHasan
Created November 24, 2017 19:47
Show Gist options
  • Save nomanHasan/6fa02ebdb3722fb63b8a1601eae5c6f2 to your computer and use it in GitHub Desktop.
Save nomanHasan/6fa02ebdb3722fb63b8a1601eae5c6f2 to your computer and use it in GitHub Desktop.
RootReducer
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