0.1.4 • Published 3 years ago
sf-hooks v0.1.4
📦 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
本项目仅供教学使用, 切勿用于生产, 感谢大家!