v5.0.0-beta.2
Pre-release
Pre-release
salvoravida
released this
16 Aug 12:48
·
47 commits
to master
since this release
- rewritten in TS
- add support for react-router v6.0.0-beta.1
import { HistoryRouter as Router } from "redux-first-history/rr6";
import { Route, Routes, Navigate } 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>
demo rr6 here: https://codesandbox.io/s/redux-first-history-demo-rr6-uccuw