New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-country

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-country

react country / city / country code component

latest
Source
npmnpm
Version
0.2.5
Version published
Maintainers
1
Created
Source

react-country

DEPRECATED

react country help you search the country / city / country code / city code.

Now use the react-select to solve the style work.

Demo

Demo

Installation

You can install react-country component using the npm.

npm install react-country --save

Usage

  • Require the react-country component

    var CountryList = require('react-country').CountryList;
    
  • Start using it

    Raw js:

    React.createElement(CountryList)
    

    JSX:

    <CountryList />
    

** Note **

If you want to use the react-select style, please import the css in css/feault.css.

Or you can check the doc in react-select to get more info.

Callbacks

onChange

after you input the value, it return the country or city name you select.

Todo

  • customize theme
  • add country code search

Data source

https://restcountries.eu/

License

MIT @ctxhou

Keywords

react

FAQs

Package last updated on 13 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts