Country utils

Assorted utils for country lists, which includes:

Country Data

Country Data is auxiliary class that contains the country database.

Normally you don't need to use this class for React Component import, but for advanced usage, you might want to have a look at the source code.

Class methods include:

Each country is an object with the following key/values:

{
  alpha2: 'UK',
  alpha3: 'UK_',
  countryCallingCodes: ['+44'],
  currencies: ['GBP'],
  emoji: '🇬🇧',
  ioc: 'GBR',
  languages: ['eng', 'cor', 'gle', 'gla', 'cym'],
  name: 'United Kingdom',
  status: 'assigned'
}

Country Filter

Country Filter is a collection of predefined groups of countries:

Component import

import CountryData, { CountryFilter } from 'land-verktoy'