Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created Jun 16, 2020
Embed
What would you like to do?
import { createStore } from 'redux'
import reducer from './reducers';
const initialState = {
byId: {
isLoading: null,
error: null,
data: null
},
byBulk: {
isLoading: null,
error: null,
data: null
}
};
const store = createStore(reducer, initialState, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());
export default store;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment