sf-hooks
v0.1.4
Published
React hook library
Downloads
6
Readme
📦 Install
$ npm install --save sf-hooks
# or
$ yarn add sf-hooks
# or
$ pnpm add sf-hooks
🔨 Usage
import { useTitle } from 'sf-hooks'
🎉 Hooks list
| Hook | Description | | ---------- | -------------------------------------------- | | useBoolean | Methods to control a boolean state | | useTitle | Change the docoment title | | useTimeout | Trigger callback after specified time | | useMount | Trigger callback when component is mounted | | useOnMount | Trigger callback when component is unMounted |
🤝 Notice
本项目仅供教学使用, 切勿用于生产, 感谢大家!