import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { persistState } from '../middlewares/persistState';
import rootReducer from '../reducers';

export default preloadedState => {
  const store = createStore(
    rootReducer,
    preloadedState,
    applyMiddleware(
      thunk,
      persistState,
    ),
  );

  return store;
};

@@ -30,16 +30,25 @@
 ddleware
+, compose
  %7D from 
@@ -286,24 +286,39 @@
 oadedState,%0A
+    compose(%0A  
     applyMid
@@ -329,41 +329,98 @@
 are(
-%0A      thunk,%0A      persistState,
+thunk, persistState),%0A      window.devToolsExtension ? window.devToolsExtension() : f =%3E f
 %0A   

Add redux dev tools