title: history.location.replace is not a function using react-router v4
body: <p>In redux's <code>componentWillRecevieceProps</code> can I do redirect using react router? I did this</p>
  
  <pre><code>componentWillReceiveProps(nextProps) {
      if(nextProps.user.isAuthenticated !== this.props.user.isAuthenticated &amp;&amp; nextProps.user.isAuthenticated) {
          console.log(nextProps.history)
          nextProps.history.location.replace('/dashboard')
      }
    }
  </code></pre>
  
  <p>But the error is at <code>nextProps.history.location.replace('/dashboard')</code> I also tried <code>this.history.location.replace('/dashboard')</code></p>
  
  <p>But when I <code>console.log(nextprops.history)</code>, the method is there. What's the problem?</p>