Reactjs – How to use MUI Drawer in a separate .jsx file with BrowserRouter?
I have prepared a simple test case at Github for my question: In my App.jsx there is following code: <NavDrawer /> <BrowserRouter> <Routes> <Route path="page1" element={<Page1 />} /> <Route path="page2" element={<Page2 />} /> <Route path="page3" element={<Page3 />} /> <Route path="*"…