title: NavLink detect every menu list element as Active
body: <p>I have this code:</p>
  <pre><code>&lt;NavLink
    to={item.link}
    style={(isActive) =&gt; ({
    color: isActive ? &quot;orange&quot; : &quot;white&quot; })} 
  /&gt;
  </code></pre>
  <p>It doesn't seem to work, It's like they are always active and so orange.</p>
  <p>It was working but then I migrated the project to another new with React v18 and now it's not working anymore. I've just read the documentation and it's the correct way to use it.</p>
  <p>Can you help me? Thanks!</p>