@feelcrazy/use-fetch
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

@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]);

Readme

Keywords

none

Package Sidebar

Install

npm i @feelcrazy/use-fetch

Weekly Downloads

0

Version

0.1.5

License

MIT

Unpacked Size

275 kB

Total Files

11

Last publish

Collaborators

  • feelcrazy