{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> </> )}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter