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>
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments