Parsing error: JSX element 'Route' has no corresponding closing tag.
meu codigo:
import { BrowserRouter, Route, Routes } from "react-router-dom";
import Dashboard from "./pages/Dashboard";
import BasePagina from "./pages/PaginaBase";
function AppRoutes () {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<BasePagina/>} />
<Route path="/dashboard" element={<Dashboard/>} />
</Routes>
</BrowserRouter>
);
}
export default AppRoutes;
Nem eu e nem o ChatGPT sabemos que tag quer que eu feche. Alguém pode me ajudar por favor