usefetch_simple_hook

1.0.3 • Public • Published

Usage:

npm i usefetch_simple_hook

import { useFetchHook } from 'usefetch_simple_hook';

const {data, loading, error, doFetch} = useFetchHook();

for the first render call hook:

useEffect(() => { doFetch(Your_URL); }, []);

to call a hook by pressing the button:

const handleClick = () => { doFetch(Your_URL); }

Readme

Keywords

Package Sidebar

Install

npm i usefetch_simple_hook

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

1.54 kB

Total Files

3

Last publish

Collaborators

  • olhaos