Post History
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 "./...
Question
#react.js
#1: Initial revision
how to remove error?
This is my code to create navigation bar ````import React from 'react'; 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