Now, we can render the continents in the dropdown menu:

PHOTO EMBED

Fri Aug 23 2024 17:19:37 GMT+0000 (Coordinated Universal Time)

Saved by @negner

<select className="custom-select" onChange={(e) => setInputValue(e.target.value)}>
  <option selected hidden>Select a Continent</option>
  {continents.map((item, index) => (
    <option key={index} value={item.code}>
      {item.name}
    </option>
  ))}
</select>
content_copyCOPY