Javascript – "No routes matched location" error using react-router-dom v6
My App component without the imports: function App() { const { token, login, logout, userId, userEmail } = useAuth(); let routes; if (token) { routes = ( <> <Route path='/' element={<Home />} /> <Route path='profile' element={<Profile />} /> <Route path='organizations'…