title: How to keep search query in a sharable URL
body: <p>(Web dev newbie here)</p>
  
  <p>I have created a simple one page React App that has an input form and, after a button click, calls an API and displays the response.</p>
  
  <p>I would like to be able to share an URL that would take people directly to the app and would search automatically.</p>
  
  <p>For instance, a user goes to the app (<code>http://myapp.com/</code>) and inputs <em>sophie</em> and <em>20</em>. He then gets information about that person (a <em>fetch</em> is made with this input) -  this is already working. But also, the url changes to something like this:</p>
  
  <pre><code>http://myapp.com/person?name=sophie&amp;age=20
  </code></pre>
  
  <p>The user would now be able to share this URL and people would be redirected to the app which would show data about sophie, after calling the api with <em>sophie</em> and <em>20</em> as input again (without the user having to input anything).</p>
  
  <p>What is the best way for doing this?</p>