use-single-history
history的单例模式
Install
npm install --save use-single-history
Usage
import * as React from 'react'
import { useMyHook } from 'use-single-history'
const Example = () => {
const example = useMyHook()
return (
<div>
{example}
</div>
)
}
License
This hook is created using create-react-hook.