title: How to go back to react router v5 from react router v6 for nested dashboard?
body: <p>I need to go back to follow a old nested routing tutorial but I started with v6</p>
  <pre><code>import {
    BrowserRouter as Router,
    Route,
    Routes,
    useNavigate
  } from &quot;react-router-dom&quot;;
  import ReactDOM from &quot;react-dom&quot;;
  
  const Dash = () =&gt; {
      const navigate = useNavigate();
      return (
      &lt;div&gt;
          &lt;h1&gt;Dash&lt;/h1&gt;
          &lt;button onClick={() =&gt; navigate(&quot;/makeAdmin&quot;)}&gt;Make Admin&lt;/button&gt;
      &lt;/div&gt;
  )};
  </code></pre>