Last active
December 28, 2019 21:53
-
-
Save shanebdavis/4769d97b518207a670d0a46067cc49cb to your computer and use it in GitHub Desktop.
modular-redux-tutorial list poart 4 inject reducer
This file contains 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
// INJECT-REDUCERS INTO REDUX STORE | |
store.injectReducer(storeKey, (state = initialState, { type, payload }) => | |
reducers[type] ? reducers[type](state, payload) : state | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment