title: react route parse url and pass props to component
body: <p>I have routes defined like following:</p>
  
  <pre><code>&lt;Route path="auth"&gt;
     &lt;Route path="confirm-code" component={this.getIndexRoute()} email="xyz@gmail.com" code="1234" /&gt;
  &lt;/Route&gt;
  </code></pre>
  
  <p><code>getIndexRoute()</code> gives me a component to navigate to. When I hit <code>http://localhost:3000/de/auth/confirm-code/</code> it works.</p>
  
  <p>However, I want to modify this path to be like <code>http://localhost:3000/de/auth/confirm-code/email=someEmail&amp;code=someCode</code> 
  I would then want to pass those received email and code as props to my component so that I can process them there. right now I am hard-coding email="xyz@gmail.com" and code=1234. I would like to extract them from the url.  </p>
  
  <p>How to do it?</p>