title: redux-localstorage implementation error: Warning: Failed propType: Invalid prop `store` of type `function` supplied to `Provider`, expected `object`
body: <p>I'm currently implementing <a href="https://github.com/elgerlambert/redux-localstorage" rel="nofollow noreferrer">redux-localstorage</a></p>
  
  <p>but I'm encountering the following error: Warning: Failed propType: Invalid prop <code>store</code> of type <code>function</code> supplied to <code>Provider</code>, expected <code>object</code></p>
  
  <p>Here's my index.js file - what am I missing here?</p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import { Provider } from 'react-redux';
  import { compose, createStore, applyMiddleware } from 'redux';
  import ReduxThunk from 'redux-thunk';
  import { createLogger } from 'redux-logger';
  import persistState from 'redux-localstorage'
  
  import App from './components/app';
  import reducers from './reducers';
  
  const logger = createLogger({ collapsed: true });
  const enhancer = compose(
    ReduxThunk,
    logger,
    persistState(null, 'redux')
  );
  
  const store = createStore(reducers, enhancer);
  
  ReactDOM.render(
    &lt;Provider store={store}&gt;
      &lt;App /&gt;
    &lt;/Provider&gt;
    , document.querySelector('.container'));
  </code></pre>