|
@@ -1,12 +0,0 @@
|
|
|
-import { createStore, combineReducers, applyMiddleware, compose } from "redux";
|
|
|
-import mainReducer from "./reducers/mainReducer";
|
|
|
-import thunk from "redux-thunk";
|
|
|
-
|
|
|
-const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
|
|
-
|
|
|
-const enhancer = composeEnhancers(applyMiddleware(thunk));
|
|
|
-
|
|
|
-const store = createStore(mainReducer, enhancer); //вторым параметром идет
|
|
|
-
|
|
|
-
|
|
|
-export default store;
|