1.0.2 • Published 5 years ago

@ejp/react-hook-axios v1.0.2

Weekly downloads
4
License
MIT
Repository
-
Last release
5 years ago

React Hook Axios

yarn add @ejp/react-hook-axios

A small utility hook to use Axios in your React components, with a simple and familiar API.

USAGE

See the small app in /example for a demo.

import useAxios from '@ejp/react-hook-axios';

...
const [{ data, error, loading }, retry] = useAxios(
  {
    url: 'https://my.api',
    method: 'get',
  },
  []
);

// TODO

Project was bootstraped with the excellent TSDX framework.