Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shoppingzh/magic-hooks
🧙 一行代码,解决你的业务问题!
https://github.com/shoppingzh/magic-hooks
functions hooks vue vue3
Last synced: about 5 hours ago
JSON representation
🧙 一行代码,解决你的业务问题!
- Host: GitHub
- URL: https://github.com/shoppingzh/magic-hooks
- Owner: shoppingzh
- Created: 2023-03-29T03:45:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-22T13:08:43.000Z (3 months ago)
- Last Synced: 2024-10-31T09:26:22.571Z (8 days ago)
- Topics: functions, hooks, vue, vue3
- Language: TypeScript
- Homepage: https://magic-hooks-docs.vercel.app
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 🧙 magic-hooks
魔法hooks。一行代码,解决你的业务问题!
## 安装
```bash [pnpm]
pnpm i magic-hooks
# yarn add magic-hooks
# npm i magic-hooks
```## 使用
```ts
import useLoad from 'magic-hooks/useLoad'const { result, load } = useLoad(() => Promise.resolve([1, 2, 3]))
load()
```