title: cookie value is undefined (react-cookie 2.0.6)
body: <p>I have a problem with implementing react cookies v^2. I use webpack-dev-server for testing.<br>
  Here is a conlose log:  </p>
  
  <p>Warning: Failed context type: The context <code>cookies</code> is marked as required in <code>withCookies(App)</code>, but its value is <code>undefined</code>.<br>
            in withCookies(App)<br>
            in Provider</p>
  
  <p>/App.jsx:</p>
  
  <pre><code>import React, { Component } from 'react';
  import { CookiesProvider, withCookies, Cookies} from 'react-cookie'
  import {Route, Switch, BrowserRouter} from 'react-router-dom';
  
  //import RequireAuth from './RequireAuth';
  import NotFoundPage from './NotFoundPage';
  import LandingPage from './LandindPage';
  import WorkSpace from './WorkSpace';
  import ActivationPage from './ActivationPage';
  
  class App extends Component {
    render() {
      return (
        &lt;CookiesProvider&gt;
          &lt;BrowserRouter&gt;
            &lt;Switch&gt;
              &lt;Route exact={true} path="/" component={LandingPage}/&gt;
              &lt;Route path="/workspace" component={WorkSpace}/&gt;
              &lt;Route exact path="/activation" component={ActivationPage}/&gt;
              &lt;Route path="*" component={NotFoundPage}/&gt;
            &lt;/Switch&gt;
          &lt;/BrowserRouter&gt;
        &lt;/CookiesProvider&gt;
      );
    }
  }
  
  export default withCookies(App);
  </code></pre>
  
  <p>/index.js:</p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import { createStore, applyMiddleware } from 'redux';
  import reduxThunk from 'redux-thunk';
  import reducers from './reducers';
  import { Provider } from 'react-redux';
  
  import App from './components/App';
  
  const createStoreWithMiddleware = applyMiddleware(reduxThunk)(createStore);
  const store = createStoreWithMiddleware(reducers);
  
  ReactDOM.render(
    &lt;Provider store = {store}&gt;
      &lt;App/&gt;
    &lt;/Provider&gt;
    ,
    document.getElementById('root'));
  </code></pre>