Skip to content

Instantly share code, notes, and snippets.

@radiegtya
Last active May 13, 2018 03:29
Show Gist options
  • Save radiegtya/4b760cca82a0b3dadd2227e97459c59a to your computer and use it in GitHub Desktop.
Save radiegtya/4b760cca82a0b3dadd2227e97459c59a to your computer and use it in GitHub Desktop.
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