1.0.2 • Published 2 months ago

use-countries-hook v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

The use-countries-hook is a customizable React hook that provides an effortless way for developers to integrate a list of countries into their components. It simplifies the process of fetching and managing country's data, allowing users to easily select countries for their applications.

Installation

npm:

npm install use-countries-hook

Getting started with use-countries-hook

Here is an example of a basic app using this hook:

import * as React from 'react';
import { useCountries } from 'use-countries-hook';

function App() {

const { getAll, getByValue } = useCountries();
  
return <div>Thank you for using this hook!</div>;

}

Library options

License

This project is licensed under the terms of the MIT license

1.0.2

2 months ago

1.0.1

8 months ago

1.0.0

8 months ago