When I return only <NavBar>
in the App.jsx file, it prints me out what I want (Navigation bar on the left side with my icons menu) but when I use the Router/Switch modules, the web page is blank any ideas why it is not working ?
import { BrowserRouter, Route, Routes, Switch } from 'react-router-dom'
import NotFound from './Pages/Errors/NotFound';
import NavBar from './Components/NavBar';
import Dashboard from './Pages/Dashboard/Dashboard';
import User from './Pages/User/User';
export default function App() {
return (
<BrowserRouter>
<NavBar/>
<Switch>
<Routes>
<Route exact path="/" element={<Dashboard />} />
<Route path = "/user" element={<User />} />
</Routes>
</Switch>
</BrowserRouter>
);
}