Last active
May 8, 2020 22:52
-
-
Save gavilanch/e545f2f62005506ca55f441f617ea445 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function initializeCounterComponent() { | |
let counterClick = document.querySelector("#counterClick"); | |
if (counterClick) { | |
counterClick.addEventListener("click", (e) => { | |
console.log("click JavaScript"); | |
let boton = e.target; | |
boton.innerHTML = "Hola"; | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment