Skip to content

Instantly share code, notes, and snippets.

@eLafo
Last active October 25, 2016 16:53
Show Gist options
  • Save eLafo/a53f0976028b8a016b2f853f8f754ff4 to your computer and use it in GitHub Desktop.
Save eLafo/a53f0976028b8a016b2f853f8f754ff4 to your computer and use it in GitHub Desktop.
//rootReducer.js
import { combineReducers} from 'redux';
//modules import
import app from './app';
import topics from './topics';
const combinedReducers = combineReducers({
[topics.constants.NAME] : topics.reducer,
[app.constants.NAME] : app.reducer
})
export default combinedReducers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment