a recorder for react-router can use sessionStorage to help you record your page router history based on react, react-router
npm install --save recorder-react-router-history
yarn add recorder-react-router-history
import { useRouterHistoryRecorder } from 'recorder-react-router-history';
//in your function component
const history = useHistory();
useRouterHistoryRecorder('123', history);
MIT © arthur7921
This hook is created using create-react-hook.