File size: 389 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 |
import rootReducer from './reducer/reducer'
// creating a store
import { createStore } from "redux";
// adding the combined reducers into the store
// PS: the 2nd argument is just for Redux Devtool Extension, it has nothing to do with the concept
const store = createStore(rootReducer ,window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())
export default store |