Skip to content

alobato/use-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

useFetch

React hook for fetching json data

Note: This is using the new React Hooks API

You'll need to install react, react-dom, etc at ^16.8.0 or above

Install

yarn add @alobato/usefetch

Usage

import useFetch from '@alobato/usefetch'

const { data, error, loading } = useFetch('https://api.github.com/repos/alobato/usefetch')

About

React hook for fetch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published