languages.map(language => (
<option
key={language}
onClick={() => changeLocale(language)}
selected={currentLocale === language}
>
{languageName[language]}
</option>
))
}
Is this what you're trying to do?
thanks
for some reason the onClick event isn't firing, why?
Try onChange from Select component.
Обсуждают сегодня