title: How can i show nav bar on route.v6 only on a specific page?
body: <p>can i show nav bar on route.v6 only on a specific page?
  how to. . .</p>
  <pre><code>const Router = () =&gt; {
    return (
      &lt;BrowserRouter&gt;
        &lt;Routes&gt;
          &lt;Route path=&quot;/&quot; element={&lt;Main /&gt;} /&gt;
          &lt;Route path=&quot;/detail&quot; element={&lt;Detail /&gt;} /&gt;
          &lt;Route path=&quot;/store&quot; element={&lt;Store /&gt;} /&gt;
          &lt;Route path=&quot;/follow&quot; element={&lt;Follow /&gt;} /&gt;
          &lt;Route path=&quot;/profile&quot; element={&lt;Profile /&gt;} /&gt;
          &lt;Route path=&quot;/login&quot; element={&lt;Login /&gt;} /&gt;
        &lt;/Routes&gt;
        &lt;Nav /&gt;
      &lt;/BrowserRouter&gt;
    );
  }; 
  </code></pre>