I have one problem with my code. I get string like "1234", and it wont render proper. I will post code and picture, so you can see whats happening.
var valuteArray = ["USD", "AUD", "BGN", "BRL", "CAD", "CHF", "CNY", "CZK", "DKK", "GBP", "HKD", "HRK", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PLN", "RON", "RUB", "SEK", "SGD", "THB", "TRY", "ZAR", "EUR"];
class Valute extends Component {
render(){
var currencyOptions = "";
valuteArray.forEach((valuta) => currencyOptions += '<option>' + valuta + '</option>')
return(
<select className="btn btn-primary dropdown-toggle col-md-3">
<option hidden> Choose your currency </option>
{currencyOptions}
</select>
);
}
}
and here is a picture from Chrome - Elements
