Last active
August 10, 2018 15:28
-
-
Save sagiavinash/0f9f12204ed83686fc26d9e1365e57b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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