REACT:
this.countries = this.api.fetchAllCountries();
this.countries.forEach(item => {
this.countryData.push(item);
});
VUE:
<div v-for="country in countryData"
@click="displayCountryInfo(country)">
{{ country.name }}
</div>
ARRAY OF OBJECTS:
https://i.sstatic.net/EP3KQ.png
QUERY:
How can I display each country within the name property on its own button?