@ivliu/use-single-history
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

use-single-history

history的单例模式

NPM JavaScript Style Guide

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

MIT ©


This hook is created using create-react-hook.

/@ivliu/use-single-history/

    Package Sidebar

    Install

    npm i @ivliu/use-single-history

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    649 kB

    Total Files

    25

    Last publish

    Collaborators

    • ivliu