Skip to content

Instantly share code, notes, and snippets.

@mohandere
Created February 16, 2018 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohandere/e692302e913af4b640fa2abce12055ab to your computer and use it in GitHub Desktop.
Save mohandere/e692302e913af4b640fa2abce12055ab to your computer and use it in GitHub Desktop.
rootReducer.js
import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
import {
reducer as toastrReducer
} from 'react-redux-toastr'
import common from './common/reducers';
import catalog from './catalog/reducers';
import home from './home/reducers';
import product from './product/reducers';
import archives from './archives/reducers';
const rootReducer = combineReducers({
common,
catalog,
home,
product,
archives,
toastr: toastrReducer,
router: routerReducer
});
export default rootReducer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment