text:  
  import { createStore, applyMiddleware, compose } from "redux";
  import history from "./history";
  import { routerMiddleware } from "connected-react-router";
  import thunk from "redux-thunk";
  import rootReducer from "./reducers";
  
  const initialState = {};
  const enhancers = [];
  const middleware = [thunk, routerMiddleware(history)];
  
  if (process.env.NODE_ENV === "development") {
    const devToolsExtension = window.__REDUX_DEVTOOLS_EXTENSION__;
    if (typeof devToolsExtension === "function") {
      enhancers.push(devToolsExtension());
    }
  }
  const composedEnhancers = compose(
    applyMiddleware(...middleware),
    ...enhancers
  );
  export default createStore(rootReducer, initialState, composedEnhancers);