Last active
March 20, 2018 06:17
-
-
Save eyaleizenberg/9d98014e898fd2060d0c91bc70aacafa to your computer and use it in GitHub Desktop.
Initializing Redux Cornell
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
import { combineReducers } from 'redux'; | |
import reduxCornell from 'redux-cornell'; | |
const { selectors, actions, superReducer } = reduxCornell({ | |
initialState: { | |
episodes: { | |
loaded: false, | |
data: [], | |
expanded: {} | |
}, | |
showInfo: { | |
visible: false | |
}, | |
currentUser: { | |
name: null | |
} | |
} | |
}); | |
export { selectors, actions }; | |
const rootReducer = combineReducers({ superReducer }); | |
export default rootReducer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment