title: Attempted import error: 'persistor' is not exported from './redux/store'
body: <p>I'm working on an react app that need to store cart data when page refresh. I decided to use redux-persist. I have implemented base by going through documentation of redux-persist. But when i run my app. it is giving me an error of persistor is exported.
  I feel like weirg.</p>
  <p>Here is my code of store</p>
  <pre><code>     import { createStore, applyMiddleware } from 'redux';
  import { composeWithDevTools } from 'redux-devtools-extension';
  import thunk from 'redux-thunk';
  import rootReducer from './reducers'
  import { persistStore, persistReducer } from 'redux-persist'
  import storage from 'redux-persist/lib/storage'
  
  const persistConfig = {
      key: 'root',
      storage,
      whitelist: ['cart']
  }
  
  const middleware = [thunk];
  
  const persistedReducer  = persistReducer(persistConfig, rootReducer)
  
  export default () =&gt; {
    let store = createStore(persistedReducer, composeWithDevTools(applyMiddleware(...middleware)) )
    let persistor = persistStore(store)
    return { persistor, store }
  }
  </code></pre>
  <p>rootreducer file</p>
  <pre><code>import { combineReducers } from 'redux';
  import auth from './auth'
  import cart from './cart'
  import services from './services'
  import profile from './profile'
  import home from './home';
  import alerts from './alert';
  
  const appReducer = combineReducers({
      auth,
      cart,
      services,
      profile,
      home,
      alerts
  })
    
  const rootReducer = (state, action) =&gt; {
      return appReducer(state, action)
  }
  
  export default rootReducer;
  </code></pre>
  <p>index file</p>
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import './index.css';
  import App from './App';
  import reportWebVitals from './reportWebVitals';
  import { MuiThemeProvider  } from '@material-ui/core/styles'
  import theme from './_theme';
  import { Provider } from 'react-redux'
  import { getLocation, loadCities } from './redux/actions/auth';
  import { PersistGate } from 'redux-persist/integration/react'
  
  import { persistor,  store} from './redux/store';
  
  ReactDOM.render(
    &lt;React.StrictMode&gt;
       &lt;MuiThemeProvider theme={theme} &gt;
         &lt;Provider store={store}&gt;
          &lt;PersistGate loading={null} persistor={persistor}&gt;
             &lt;App /&gt;
          &lt;/PersistGate&gt;
         &lt;/Provider&gt;     
       &lt;/MuiThemeProvider&gt;   
    &lt;/React.StrictMode&gt;,
    document.getElementById('root')
  );
  </code></pre>
  <p>Not able to understand the root cause. Stuck on this more than 3 hrs
  Any help would greatly thankfull</p>