title: Cannot read property 'pushState' of undefined
body: <p>I have this simple configuration for the React Router. I have another one with basically wrapping with  ... , which works. But this one doesn't (of course I tried to use with different implementations like suggested in the answers of <a href="https://stackoverflow.com/questions/31079081/programmatically-navigate-using-react-router">this post</a> and many others.</p>
  
  <p>The console error is the title of this post.
  Using ES6, and react-router v.1 with hash-based routing.</p>
  
  <p>I read <strong>a lot</strong> of articles, too unnecessary for simple routing to be implemented, and almost hating react and react-router now. Please help.</p>
  
  <pre><code>    componentWillReceiveProps() {
         this.contextTypes = {
            history: React.PropTypes.object
         }
      },
      _handleRoute(e) {
         e.preventDefault()
         this.history.pushState(null, `/somepath`);
      },
      render() {
          return(
            &lt;div onClick={this._handleRoute}&gt;
              Some Content.
            &lt;/div&gt;
          );
        } 
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>render() {
          return(
            &lt;div&gt;
              &lt;Link to={`/somepath`}&gt; link &lt;/Link&gt;
            &lt;/div&gt;
          );
        }
  </code></pre>