title: Property 'router' does not exist on type 'Readonly<Props & RouteComponentProps<{}, StaticContext, PoorMansUnknown>>
body: <pre><code>class Details extends React.Component&lt;Props &amp; RouteComponentProps, {}&gt; {
  onClick {
  this.props.router.push(&quot;/market&quot;);
  }
  }
  </code></pre>
  <p>I am getting error as <strong>Property 'router' does not exist on type 'Readonly</strong>. Can plz anyone help me with , how to use this.props.router. I am new to react router</p>