Import Browserrouter
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
Blue Baboon
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
npm install react-router-dom
<BrowserRouter
basename={optionalString}
forceRefresh={optionalBool}
getUserConfirmation={optionalFunc}
keyLength={optionalNumber}
>
<App />
</BrowserRouter>