import { createStore } from 'redux';
import rootReducer from '../reducers'

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

  if (module.hot) {
    // Enable Webpack hot module replacement for reducers
    module.hot.accept('../reducers', () => {
      const nextReducer = require('../reducers').default;
      store.replaceReducer(nextReducer);
    })
  }

  return store;
}

@@ -13,16 +13,25 @@
 ateStore
+, compose
  %7D from 
@@ -186,16 +186,100 @@
 ialState
+, compose(%0A    window.devToolsExtension ? window.devToolsExtension() : undefined%0A  )
 );%0A%0A  if

support redux dev tools chrome extension