Skip to content

Instantly share code, notes, and snippets.

@pahund
Last active October 14, 2018 20:14
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 pahund/991bd506c12d0d1199f1d05b4d512187 to your computer and use it in GitHub Desktop.
Save pahund/991bd506c12d0d1199f1d05b4d512187 to your computer and use it in GitHub Desktop.
Creating the application's reducer
import { combineReducers } from 'redux';
import { reducer as hackerNews } from '@modular-toolkit/demo-module';
import { reducer as home } from './pages/home';
import { reducer as about } from './pages/about';
import { reducer as contact } from './pages/contact';
export default combineReducers({
bricks: combineReducers({
hackerNews
}),
pages: combineReducers({
home,
about,
contact
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment