title: dynamic path NavLink React
body: <p>I'm looking for a way to make the "to" property of NavLink react dynamic.</p>
  
  <pre><code>let url = 'localhost'=='localhost'? 'foo':'';
  &lt;Router&gt;
   &lt;NavLink to={url+'/'}&gt;Home&lt;/NavLink&gt;
  &lt;/Router&gt;
  </code></pre>
  
  <p>Work but with each new render react it adds a new url to the existing one.
  <a href="http://localhost/foo" rel="nofollow noreferrer">http://localhost/foo</a>
  After render
  <a href="http://localhost/foo/foo" rel="nofollow noreferrer">http://localhost/foo/foo</a> ...</p>
  
  <p>thanks</p>