File size: 340 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import { createStore, applyMiddleware } from "redux";
import { composeWithDevTools } from "redux-devtools-extension";
import rootReducer from "./Reducer";
import thunk from "redux-thunk";
const middlewares = [thunk];
const store = createStore(
rootReducer,
composeWithDevTools(applyMiddleware(...middlewares))
);
export default store;
|