JSFiddle - React, Tailwind, and code Playground
by marlanga
HTML
<button id="boton">Presioname</button>
JavaScript
//window.onload=function(){
var boton=document.getElementById("boton");
boton.onclick=function(){
if (!this.presionado)
{
this.presionado=true;
alert("Primera vez");
}
};
//}