title: passing parameters through this.props.history.push('/xyz) in react router
body: <p>I need to pass certain parameters from one component to another component using react router in react</p>
  
  <pre><code>clicked =()=&gt;{
           //alert('clicked');
           this.props.history.push('/roles')// we need to pass paramters through this
      }
  </code></pre>
  
  <p>We need to retrieve the paramters passed from this in the component where the roles is pointing to ?</p>