v5.0.6
- removed rr6 folder since is now merged into react-router 6.1.0 https://github.com/remix-run/react-router/releases/tag/v6.1.0
rr6 support :
import { Route, Routes, Navigate, HistoryRouter as Router } from "react-router-dom";
import { store, history } from "./store";
//...
<Router history={history}>
<Routes>
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/" element={<Home />} />
<Route path="*" element={<Navigate to="/" />} />
</Routes>
</Router>