Last active
May 13, 2018 03:29
-
-
Save radiegtya/4b760cca82a0b3dadd2227e97459c59a to your computer and use it in GitHub Desktop.
This file contains 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 nav from './nav' | |
// #1. remove the contactsReducer, and replace it with profilesReducer instead | |
import profilesReducer from '../profiles/reducers' | |
const appReducer = combineReducers({ | |
nav, | |
// #2. register it on combineReducers, note: because we can register many reducer here | |
profilesReducer | |
}) | |
export default appReducer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment