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
EDIT:
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' and... function parseCountries () { return countries.map(item => { let countryName = item.country return { label: countryName, sublabel: getRandomSecondLabel(), icon: getRandomIcon(), stamp: getRandomStamp(), value: countryName } }) }