<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>
<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>