get-country-details
v1.0.3
Published
Get infomations about a country
Downloads
15
Maintainers
Readme
get-country-details
A ReactJS hook to get the country information.
How to use it?
You can use the project in this way:
Install
# with npm
npm install get-country-details
# with yarn
yarn add get-country-details
Usage
- Import the package in your app:
import { useGetCountryDetails } from 'get-country-details';
- Get the country information from the hook:
const {loading, error, country} = useGetCountryDetails('Bangladesh')'