title: <BrowserRouter> ignores the history prop
body: <p>I was using the following code from an online course for React routing:</p>
  
  <pre><code>import { Router, Route, browserHistory } from 'react-router';
  
  ReactDOM.render(
    &lt;Router history={browserHistory}&gt;
       &lt;Route path="/" component={App&gt;&lt;/Route&gt;
       &lt;Route path="/One" component={One}&gt;&lt;/Route&gt;
  
       &lt;Route path="/Two" component={Two}&gt;&lt;/Route&gt;
    &lt;/Router&gt;, document.getElementById('root'));
  </code></pre>
  
  <p>It gave me a following error <code>'react-router' does not contain an export named 'browserHistory'.</code></p>
  
  <p>I did some research and found that I was using React Router v4, and the above code was for v3, so i found that I should be using <code>&lt;BrowserRouter&gt;</code> instead of <code>&lt;Router&gt;</code> so I changed my code to:</p>
  
  <pre><code>import { BrowserRouter, Route, Switch } from 'react-router-dom';
  
  ReactDOM.render(
     &lt;BrowserRouter history={History}&gt;
  
       &lt;div&gt; 
      &lt;Route path="/" component={App}&gt;&lt;/Route&gt;
  
      &lt;Route path="/One" component={One}&gt;&lt;/Route&gt;
  
      &lt;Route path="/Two" component={Two}&gt;&lt;/Route&gt;
  
  
      &lt;Route path="*" component={NoMatch}&gt;&lt;/Route&gt;
  
    &lt;/div&gt;&lt;/BrowserRouter&gt;, document.getElementById('root'));
  </code></pre>
  
  <p>History I have in a separate file:</p>
  
  <pre><code>import { createBrowserHistory } from 'history'
  
  export default createBrowserHistory();
  </code></pre>
  
  <p>Now the page loads without an error but if I use Developer tools, I can see a warning:</p>
  
  <pre><code>Warning: &lt;BrowserRouter&gt; ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`."
  </code></pre>
  
  <p>Another issue is that <code>&lt;Route path="*" component="NoMatch}&gt;&lt;/Route&gt;</code> only supposed to load <code>NoMatch</code> component when no path specified in the router but it loads on every page, regardless.
  Can anyone help figure out how can I fix the issues?</p>