Created
May 17, 2020 00:32
-
-
Save gavilanch/51174ee1e7bc399a1e233abc6ec1a02f 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 myButton = e.target; | |
myButton.innerHTML = "Hello"; | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment