1.0.3 • Published 10 months ago

usefetch_simple_hook v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

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); }

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago