get-countries-data
v1.0.0
Published
This is an NPM to fetch you the country details
Downloads
2
Readme
get-countries-data
How to use it?
You can use the hook this way:
Install
# with npm
npm install get-countries-data
# with yarn
yarn add get-countries-data
Usage
- Import the package in your app:
import {useCountry} from 'get-countries-data';
- Get the country information from the hook:
const {loading, error, country} = useCountry('Nigeria')'