import { createStore, applyMiddleware } from "redux"; import thunk from "redux-thunk"; import { composeWithDevTools } from "redux-devtools-extension"; import { combineReducers } from "redux"; import * as reducers from "./reducers"; const initialState = {}; const middleware = [thunk]; const store = createStore( combineReducers(reducers), applyMiddleware(thunk), initialState, composeWithDevTools(applyMiddleware(...middleware)) ); export default store;