title: using same component for different route path in react-router v4
body: <p>I am trying to have separate routes but same component for add/edit forms in my react app like the below:</p>
  
  <pre><code>&lt;Switch&gt;
          &lt;Route exact path="/dashboard" component={Dashboard}&gt;&lt;/Route&gt;
          &lt;Route exact path="/clients" component={Clients}&gt;&lt;/Route&gt;
          &lt;Route exact path="/add-client" component={manageClient}&gt;&lt;/Route&gt;
          &lt;Route exact path="/edit-client" component={manageClient}&gt;&lt;/Route&gt;        
          &lt;Route component={ NotFound } /&gt;        
  &lt;/Switch&gt;
  </code></pre>
  
  <p>Now in the manageClient component, I parse the query params (I pass in a query string with client id in edit route), I render conditionally based on the query param passed. </p>
  
  <p>The problem is that this doesn't remount the whole component again. Say an edit page is opened, and the user clicks on add component, the URL changes, but the component doesn't reload and hence remains on the edit page. </p>
  
  <p>Is there a way to handle this?</p>