Skip to content

Instantly share code, notes, and snippets.

@eyaleizenberg
Last active March 20, 2018 06:17
Show Gist options
  • Save eyaleizenberg/9d98014e898fd2060d0c91bc70aacafa to your computer and use it in GitHub Desktop.
Save eyaleizenberg/9d98014e898fd2060d0c91bc70aacafa to your computer and use it in GitHub Desktop.
Initializing Redux Cornell
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