sdy

create store

1 +import { createStore, applyMiddleware } from "redux";
2 +import thunk from "redux-thunk";
3 +import combineReducers from "./reducers";
4 +
5 +import { composeWithDevTools } from "redux-devtools-extension";
6 +
7 +const initialState = {};
8 +
9 +const middleware = [thunk];
10 +
11 +const store = createStore(
12 + combineReducers,
13 + initialState,
14 + composeWithDevTools(applyMiddleware(...middleware))
15 +);
16 +
17 +export default store;