this.props.history is deprecated (react-router)
<p>I was trying to programatically navigate to a different page like so <code>this.props.history.push('/new-path');</code> it worked, but I got a deprecation warning in console saying: </p>

<p><code>Warning: [react-router] props.history and context.history are deprecated. Please use context.router.</code> more about it here <a href="https://github.com/reactjs/react-router/blob/master/upgrade-guides/v2.0.0.md#changes-to-thiscontext" rel="nofollow">https://github.com/reactjs/react-router/blob/master/upgrade-guides/v2.0.0.md#changes-to-thiscontext</a></p>

<hr>

<p>Afterwards I tried to use this new method like so <code>this.context.router.push('/new-path')</code> but this doesn't seem to be the right approach.</p>