xxxxxxxxxx
import "./App.css";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Home from "./pages/Home";
import Login from "./pages/Login";
import SecretPage from "./pages/SecretPage";
function App() {
return (
<div className="App">
<Router>
<Routes>
<Route element={<Home />} path="/" exact />
<Route element={<SecretPage />} path="/secret" />
<Route element={<Login />} path="/login" />
</Routes>
</Router>
</div>
);
}
export default App;