Skip to content

Instantly share code, notes, and snippets.

@sagiavinash
Last active August 10, 2018 15:28
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 sagiavinash/0f9f12204ed83686fc26d9e1365e57b0 to your computer and use it in GitHub Desktop.
Save sagiavinash/0f9f12204ed83686fc26d9e1365e57b0 to your computer and use it in GitHub Desktop.
// rootReducer.js
export default combineReducers({
home: homeReducer,
productList: productListReducer
});
// store.js
export default createStore(rootReducer/* , initialState, enhancer */);
// Root.js
import store from './store';
import AppContainer from './AppContainer';
export default function Root() {
return (
<Provider store={store}>
<AppContainer />
</Provider>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment