title: Get the current route name into the component
body: <p>I am trying not to use : if(window.location) to get access to my current route.</p>
  
  <p>I am working on a code where the router is already defined, and the component is already written. I am trying to access the router information from the component because I need to apply a classname depending on the route.</p>
  
  <p>Here's how the router looks like: </p>
  
  <p><code>
     export const createRoutes = (dispatch, getState) =&gt; (
        &lt;Route component={AppLayout} &gt;
           &lt;Route path="/" component={Home} onEnter={(nextState, replaceState) =&gt; {
              console.log('on Enter / = ', nextState);
              nextState.test = 'aaaa'; //can't seem to pass states here....
          }} /&gt;
  </code></p>
  
  <p>then in my component:</p>
  
  <pre><code>render() {
      //I want to access my super router or location . in fact
      // I just want to know if currentURl === '/'
  
      //and after reading the react-router doc 5 times - my head hurts 
      // but I still hope to get an answer here before putting a window.location
   }
  ` 
  </code></pre>