I am currently facing an issue that is relatively simplistic and doesn't have any real-world application.
My goal is to locate a 'green' button and make it blink for a duration of 3 seconds. How can I achieve this using React?
const btnLayout = ["Yellow", "Green", "Blue", "Orange"];
btnLayout.map((item, index) => {
return (
<button>
data-id={`slot-${item}`}
type="button" className={`col-1 btn btn-${colorMap[index]}`}
{item}
</button>
);
});