New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-country-province

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-country-province

Country and Province/State typeahead selector using react.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
increased by29.41%
Maintainers
1
Weekly downloads
 
Created
Source

React-Country-Province

React-Country-Province is a component that handles country & province selection. Change the country and the province options get updated.

Country and province list originated from here

Parameters:

  • country: React.PropTypes.bool,
  • countryName: React.PropTypes.string,
  • countryValue: React.PropTypes.string,
  • countryLabel: React.PropTypes.string,
  • countryMulti: React.PropTypes.bool,
  • countryBringToTop: React.PropTypes.array,
  • province: React.PropTypes.bool,
  • provinceName: React.PropTypes.string,
  • provinceValue: React.PropTypes.string,
  • provinceLabel: React.PropTypes.string,
  • provinceMulti: React.PropTypes.bool,
  • defaultCss: React.PropTypes.bool,
  • onCountryChange: React.PropTypes.func,
  • onProvinceChange: React.PropTypes.func

Example

  React.render(
    (   
      <div>
        <h1>React Country/Region Select</h1>

        <p> 
          Making country / region selection suck less.
        </p>

        <ReactCR
              countryValue='US'
              provinceValue='CA' />
      </div>
    ),  

    document.body
  )

Keywords

FAQs

Package last updated on 26 Aug 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc