title: Using React Router withRouter
body: <p>How do you get the routing context, location, params, etc, when using <strong>withRouter()</strong>?</p>
  
  <pre><code>import { withRouter } from 'react-router';
  
  const SomeComponent = ({location, route, params}) =&gt; (
      &lt;h1&gt;The current location is {location.pathname}&lt;/h1&gt;
  );
  
  const ComposedWithRouter = withRouter(SomeComponent);
  </code></pre>
  
  <p>Can you obtain that info using withRouter or do these things have to be explicitly passed down the component tree?</p>