Fri Aug 23 2024 17:25:38 GMT+0000 (Coordinated Universal Time)
Saved by @negner
{countries.length > 0 && ( <> <h3>Countries in {inputValue}</h3> <div className={isVisible ? "reveal" : ""}> <div className="country-contain"> {countries.map((item, index) => ( <p key={index} className="country"> {item.name} </p> ))} </div> </div> </> )}
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments