Skip to content

v5.0.6

Compare
Choose a tag to compare
@salvoravida salvoravida released this 10 Dec 22:15
· 24 commits to master since this release

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>