Where can I redirect to a different page in React-router 1.0
<pre><code>render(){
    if (!this.readyForStep()){
        this.props.history.pushState(null, `step2`);
    }
    // Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.
}
</code></pre>

<p>So I can't redirect in render()... where in a component lifecycle can/should I?</p>