title: NavLink exact prop not working for react-router-dom 6
body: <p>I am currently using</p>
  <pre><code>    &quot;react-router&quot;: &quot;^6.0.0-beta.0&quot;,
      &quot;react-router-dom&quot;: &quot;^6.0.0-beta.0&quot;,
  </code></pre>
  <p>The problem with NavLink of react-router-dom that i am facing now is that the root path &quot;/&quot; is always active, other paths are of no problem and they are being active and inactive during toggle, its just the root path that is giving me trouble, i have searched and tried many solutions. but nothing worked.
  Use &quot;exact&quot; and &quot;exact={true}&quot; both, but no success.</p>
  <p>Used this:</p>
  <pre><code>&lt;NavLink
            className=&quot;iconContainer&quot;
            exact={true}
            to=&quot;/&quot;
            activeClassName=&quot;isActive&quot;
          &gt;
            &lt;span className=&quot;menu-title&quot;&gt;Home&lt;/span&gt;
          &lt;/NavLink&gt;
  </code></pre>
  <p>and Also this:</p>
  <pre><code>
  &lt;NavLink
            className=&quot;iconContainer&quot;
            exact
            to=&quot;/&quot;
            activeClassName=&quot;isActive&quot;
          &gt;
            &lt;span className=&quot;menu-title&quot;&gt;Home&lt;/span&gt;
          &lt;/NavLink&gt;
  </code></pre>
  <p>I have been stuck in this situation for past two days, and still no success in finding any solution.
  Any help will be appreciated, thanks</p>
  <p>Edit:
  My routes</p>
  <pre><code>&lt;Routes&gt;
   
                  &lt;Route
                      exact
                      path=&quot;order/:orderId&quot;
                      element={&lt;OrderDetails /&gt;}
                  &gt;&lt;/Route&gt;
                  &lt;Route
                      exact
                      path=&quot;orders&quot;
                      element={&lt;Orders /&gt;}
                  &gt;&lt;/Route&gt;
                  &lt;Route
                      exact
                      path=&quot;/&quot;
                      element={&lt;Home /&gt;}
                  &gt;&lt;/Route&gt;
  
                  
        &lt;/Routes&gt;
  </code></pre>