A ReactJS custom hook information.
Liked it? You can show your support with a STAR(⭐).
You can use the project in this way:
# with npm
npm install dhoangzxje-hook
# with yarn
yarn add dhoangzxje-hook
- Import the package in your app:
import {useFetch} from 'dhoangzxje-hook';
- Get the country information from the hook:
const {loading, error, data} = useCountry('https://...')'