I am trying to hit a URL based on some variable data.
{
this.state.countries.map((country, key) => {
return <a key={country.iso2}>
<img src="https://www.countryflags.io/{country.iso2}/shiny/24.png" />
</a>;
});
}
The value {country.iso2} in the above URL is dynamic. Please help me to format the URL correctly.