title: How to use <Link> react router?
body: <p>I am working with reactjs and react router.
  I have create my router as:</p>
  
  <pre><code>ReactDOM.render(
    &lt;Router history={browserHistory}&gt;  
      &lt;Route exact path="/" component={App} /&gt;
      &lt;Route path="/:id" component={User} /&gt;
    &lt;/Router&gt;,
    document.getElementById('root')
  );
  </code></pre>
  
  <p>And in the App component I have a Link to the <code>"/:id"</code> path :</p>
  
  <pre><code>&lt;Link to={'/'+id} &gt;
  </code></pre>
  
  <p>when I am in the "/" route, my view works fine but now when I click my link, the path changes and my view changes for an instant and then gives an error in the App component (It is the component of the other route) .</p>
  
  <p>I use <code>"react-router": "^2.8.1".</code></p>
  
  <blockquote>
    <p>PS: the error is in the setinterval function in the component {App}. </p>
  </blockquote>
  
  <p>Thanks for any help in advance</p>