import {createStore, applyMiddleware} from "redux";
import thunkMiddleware from "redux-thunk";
import rootReducer from "../reducers/index";

const createStoreWithMiddleware = applyMiddleware(thunkMiddleware)(createStore);

export default function configureStore(initialState) {
    const store = createStoreWithMiddleware(rootReducer, initialState);

    return store;
}

@@ -340,19 +340,97 @@
 ialState
+,%0A       window.devToolsExtension ? window.devToolsExtension() : undefined%0A    
 );
-%0A
 %0A    ret

update store to use redux dev tools