title: Redirecting willTransitionTo in react-router 2.4.0?
body: <p>I am currently using <code>"react-router": "^2.4.0"</code> on my chat application  and confused on how to redirect when there is no user. I don't think <strong>redirect</strong> works in <code>"^2.4.0"</code> . </p>
  
  <p>Should I use <code>onEnter</code> hooks on my <strong>chat</strong> path?</p>
  
  <p><strong>Something like this:</strong></p>
  
  <pre><code> &lt;Route path="chat" component={Chat} onEnter={Chat.willTransitionTo}/&gt;
  </code></pre>
  
  <p><strong>routes.js</strong></p>
  
  <pre><code> &lt;Route path="/" component={App} &gt;
      &lt;IndexRoute component={Chat} /&gt;
      &lt;Route path="chat" component={Chat} /&gt;
      &lt;Route path="login" component={Login} /&gt;
   &lt;/Route&gt;
  </code></pre>
  
  <p><strong>Chat.jsx</strong></p>
  
  <pre><code>static willTransitionTo(transition){
    var state = ChatStore.getState();
    if(!state.user){
      transition.redirect('/login');
    }
  }
  </code></pre>