create-api-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.0.50 • Public • Published

create-api-hooks

NPM JavaScript Style Guide

Install

npm install --save create-api-hooks

or

yarn add create-api-hooks

Usage

import React form 'react'
import createApiHooks from 'create-api-hooks'

const useApi = () => createApiHooks(axios.get('/data'))

const App = () => {
    const {data} = useApi()
    console.log(data)
}

License

MIT © mushan0x0

Readme

Keywords

none

Package Sidebar

Install

npm i create-api-hooks

Weekly Downloads

56

Version

0.0.50

License

MIT

Unpacked Size

46.9 kB

Total Files

8

Last publish

Collaborators

  • may529
  • mushan01