title: How do I redirect to another page and also transfer value to the page in React?
body: <p>This is my button</p>
  <pre><code>&lt;Button onClick={this.clickMe.bind(this, data)} className=&quot;ViewDetailsBtnLink&quot;&gt;View Details&lt;/Button&gt;
  </code></pre>
  <p>And this is the function clickMe</p>
  <pre><code>clickMe(data){
      console.log(data);    
  }
  </code></pre>
  <p>Right now, all it does is display the data in the console. I wish to transfer the data to another page as well as redirect to the ViewDetails page which displays the data.
  Any help is appreciated.</p>