1.0.1 • Published 3 years ago
react-hook-fetcher v1.0.1
React Hook Fetcher
Simple React hook for the fetch API.
Intall
$ npm install react-hook-fetcher
Example
function App() {
const {
fetcher,
result,
isLoading,
} = useFetcher();
useEffect(() => {
fetcher('http://http://google.com.au/')
}, []);
return <div>{isLoading ? 'Loading...' : result}</div>;
}
1.0.2-beta.4
3 years ago
1.0.2-beta.2
3 years ago
1.0.2-beta.1
3 years ago
1.0.1
4 years ago
1.0.0
4 years ago