How to use the country-region-data.find function in country-region-data

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

github xyfir / accownt / client / components / dashboard / user / services / View.jsx View on Github external
menuItems={crd}
                itemLabel="countryName"
                itemValue="countryShortCode"
                defaultValue={form.country}
              />
            </Conditional>

            <Conditional show={!this._isDisabled('region')}>
              <SelectField
                fullWidth
                id="select-region"
                ref="region"
                label="State/Province/Region"
                menuItems={
                  (
                    crd.find(c => c.countryShortCode == this.state.country) || {
                      regions: []
                    }
                  ).regions
                }
                itemLabel="name"
                itemValue="shortCode"
                defaultValue={form.region}
              />
            </Conditional>

            <Conditional show={!this._isDisabled('address')}>
              <TextField
                id="text--address"
                ref="address"
                type="text"
                label="Address"

country-region-data

List of countries, regions, and their short-codes.

MIT
Latest version published 2 months ago

Package Health Score

78 / 100
Full package analysis

Popular country-region-data functions