Comments on how to remove error?
Post
how to remove error? [closed]
+0
−3
Closed as off topic by Mithical on Oct 7, 2022 at 13:33
This question is not within the scope of Code Golf.
This question was closed; new answers can no longer be added. Users with the reopen privilege may vote to reopen this question if it has been improved or closed incorrectly.
This is my code to create navigation bar
import './App.css';
import{
BrowserRouter,
Routes, //replaces "Swiutch" used till v5
Route,
}from "react-router-dom";
import Footer from "./components/Footer/Footer";
import Header from "./components/Header/Header";
import Home from "./components/Home/Home";
import Dashboard from"./components/Dashboard/Dashboard";
function App() {
return (
<div className="App">
<Router>
<Header></Header>
<div className="container">
<Routes>
<Route path="/"> element={<Home/>}</Route>
<Route path="/dashboard">element={<Dashboard/>}</Route>
</Routes>
</div>
But it provides me parsing error
1 comment thread