How to display different navbar component for different reactjs pages
问题 I am trying to display two different navbar component one as the main site navbar and one for the dashboard navbar. I have tried creating two reusable components namely: <LayoutNav /> and <DashboardNav /> Here is their implementation: const LayoutNav = ({children}) => { return ( <> <section className="container-fluid"> <Navbar /> {children} </section> </> ); } it is the same for LayoutDashboardNav i only changed <Navbar /> to <DashboardNav /> below is my route implementation: <BrowserRouter>