I am new with react I follow a course with typescript, but after I create components in the course he display it in all routers I need to not display in login page only is there any way to achieve that here part from my code in App.tsx
import React from 'react';
import logo from './logo.svg';
import './App.css';
import {Login} from "./components/Login";
import {Nav} from "./components/Nav";
import {Home} from "./components/Home";
import {BrowserRouter, Routes, Route} from "react-router-dom";
function App() {
return <BrowserRouter>
<Nav/>
<Routes>
<Route path="/login" element = {<Login/>} />
<Route path="/" element = {<Home/>} />
</Routes>
</BrowserRouter>;
}
the Nav component is the component I need to not show in Login component thanks in advance