Skip to content

快速入手

安装

bash
pnpm i magic-hooks
bash
yarn add magic-hooks
bash
npm i magic-hooks

使用

ts
import useLoad from 'magic-hooks/lib/useLoad'

const { result, load } = useLoad(() => Promise.resolve([1, 2, 3]))

load()

最近更新于: