Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shoppingzh/magic-hooks

🧙 一行代码,解决你的业务问题!
https://github.com/shoppingzh/magic-hooks

functions hooks vue vue3

Last synced: about 5 hours ago
JSON representation

🧙 一行代码,解决你的业务问题!

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()
```