1.0.1 • Published 4 years ago

recorder-react-router-history v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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

NPM JavaScript Style Guide

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.