title: How to get route name in handler using react-route?
body: <p>As on subject how can I get the route name inside the handler?
  For example:</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>var routes = &lt;Route handler={App} path="/"&gt;
      &lt;Route name="home" path="/home" handler={HomePage} /&gt;
      &lt;DefaultRoute handler={HomePage} /&gt;
  &lt;/Route&gt;
  
  Router.run(routes, function(Handler, state) {
    var params = state.params;
    React.render(&lt;Handler params={params}/&gt;, document.body);
  });
  </code></pre>
  
  <p>Now suppose I have a component like this:    </p>
  
  <pre class="lang-js prettyprint-override"><code>class HomePage extends React.Component {
      render() {
          return(&lt;div&gt;MyComponent&lt;/div&gt;)
      }
  }
  </code></pre>
  
  <p>how can I get the current route name? To be more specific I want to get the </p>
  
  <pre class="lang-js prettyprint-override"><code>name="home"
  </code></pre>
  
  <p>attribute from </p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;Route name="home" path="/home" handler={HomePage} /&gt;
  </code></pre>