title: React Router failed prop 'history', is undefined
body: <p>I've been following along Tyler Mcginnis' tutorial and hit a snag with the react router, specifically with history. I ended up copying his code verbatim just to see if it was only me, but I'm still getting </p>
  
  <pre><code>Warning: React.createElement: type is invalid -- expected a string (for built-
  in components) or a class/function (for composite components) but got:
  undefined. You likely forgot to export your component from the file it's 
  defined in.
  
  Warning: Failed prop type: The prop `history` is marked as required in 
  `Router`, but its value is `undefined`. in Router
  
  Uncaught TypeError: Cannot read property 'location' of undefined
  at new Router (index_bundle.js:8347)
  at index_bundle.js:19079
  at measureLifeCyclePerf (index_bundle.js:18859)
  at ReactCompositeComponentWrapper._constructComponentWithoutOwner (index_bundle.js:19078)
  at ReactCompositeComponentWrapper._constructComponent (index_bundle.js:19064)
  at ReactCompositeComponentWrapper.mountComponent (index_bundle.js:18972)
  at Object.mountComponent (index_bundle.js:4070)
  at ReactCompositeComponentWrapper.performInitialMount (index_bundle.js:19155)
  at ReactCompositeComponentWrapper.mountComponent (index_bundle.js:19042)
  at Object.mountComponent (index_bundle.js:4070)
  </code></pre>
  
  <p>The implementation is:</p>
  
  <pre><code>var React = require('react');
  var ReactRouter = require('react-router');
  var Router = ReactRouter.Router;
  var Route = ReactRouter.Route;
  var hashHistory = ReactRouter.hashHistory;
  var IndexRoute = ReactRouter.IndexRoute;
  var Main = require('../components/Main');
  var Home = require("../components/Home");
  var PromptContainer = require('../containers/PromptContainer');
  
  var routes = (
    &lt;Router history={hashHistory}&gt;
      &lt;Route path='/' component={Main}&gt;
        &lt;IndexRoute component={Home} /&gt;
        &lt;Route path='playerOne' header='Player One' component={PromptContainer} /&gt;
        &lt;Route path='playerTwo/:playerOne' header='Player Two' component={PromptContainer} /&gt;
      &lt;/Route&gt;
    &lt;/Router&gt;
  );
  
  module.exports = routes;
  </code></pre>
  
  <p>What I noticed was that <code>hashHistory</code> doesn't exist in the <code>react-router</code> module, but rather there is a <code>createBrowserHistory</code> inside the <code>history</code> module. Following the API doc I found, I figured I must call it through there as:</p>
  
  <pre><code>var BrowserHistory = require('history/createBrowserHistory);
  const history = createBrowserHistory();
  </code></pre>
  
  <p>Doing that produces an <code>createBrowserHistory is not a function</code> error. Removing paranthesis, results in the same errors above stating history is <code>undefined</code>.</p>
  
  <p>When I log history, it's definitely undefined, which makes me believe the issue has to do with the import statement, but wouldn't the console tell me <code>ReactRouter.hashHistory</code> could not be found?</p>
  
  <p>I understand this tutorial is a year old and there have probably been changes to the API I just not aware of, and that's where my issue lies. Any help is appreciated!</p>