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