1.0.0 • Published 1 year ago

puneet-countries-details v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

puneet-countries-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 puneet-countries-details

# with yarn
yarn add puneet-countries-details

Usage

  • Import the package in your app:
import { useCountry } from 'puneet-countries-details';
  • Get the country infromation from the hook:
const { loading, error, country } = useCountry('Republic of India');
1.0.0

1 year ago