title: Remove a query string using react-router without reloading page?
body: <p>In my application I have a query string that I want to remove after a button click. </p>
  
  <p>I get the query string like this: </p>
  
  <pre class="lang-js prettyprint-override"><code>  import qs from 'query-string'
    // ..
  
    const { search } = url
    const { id } = qs.parse(search)
  
  </code></pre>
  
  <p>Then when I click on the button, I want to remove the string without reloading the page.</p>
  
  <pre class="lang-js prettyprint-override"><code>  const onClick = () =&gt; {
       history.push({})
    }
  </code></pre>
  
  <p>However the code above doesn't work as expected.</p>