@feelcrazy/use-fetch
v0.1.5
Published
hooks for Taro
Downloads
2
Readme
@feelcrazy/use-fetch
安装
npm install @feelcrazy/use-fetch
# or yarn add @feelcrazy/use-fetch
##使用
import {useAsyncCallback,useAsync} from '@feelcrazy/use-fetch'
const asyncOnExecuted = useAsyncCallback(fetch);
asyncOnExecuted.execute()
const asyncAuto = useAsync(fetch, [id]);