data/autocomplete.json file?

  • I’m trying to replicate the Autocomplete (countries) example from the docs, however, I cannot find the file referenced in the script:

    import countries from 'data/autocomplete.json'

    Is this coming from a node module? Any idea which one?

    Thanks 🙂


    I got this to work with the following NPM package: country-json

    I had to make some minor changes to the code:

    import countries from 'country-json/src/countries-by-name.json'
      function parseCountries () {
        return => {
          let countryName =
          return {
            label: countryName,
            sublabel: getRandomSecondLabel(),
            icon: getRandomIcon(),
            stamp: getRandomStamp(),
            value: countryName

Log in to reply