UNPKG

esakki-countries

Version:

This is the package to fetch the country details

32 lines (20 loc) 462 B
# esakki-country This is the package to fetch the country details ## How to use it? You can use the project in this way: ### Install ```bash # with npm npm install esakki-countries --save-dev # with yarn yarn add --dev esakki-countries ``` ### Usage - Import the package in your app: ```js import { useCountry } from "esakki-countries"; ``` - Get the country information from the hook: ```js const {loading, error, country} = useCountry('india')' ```