recorder-react-router-history
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i recorder-react-router-history

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

37.9 kB

Total Files

15

Last publish

Collaborators

  • arthur7921