How to use the react-country-region-selector.CountryRegionData.map function in react-country-region-selector

To help you get started, we’ve selected a few react-country-region-selector examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lianetoolkit / liane-toolkit / imports / ui2 / components / CountrySelect.jsx View on Github external
_getOptions = () => {
    return CountryRegionData.map(c => {
      return {
        value: c[1],
        label: c[0]
      };
    });
  };
  _getValue = () => {

react-country-region-selector

CountryDropdown and RegionDropdown React components for your forms.

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis

Similar packages