Created
July 7, 2019 12:47
-
-
Save indreklasn/6f1b490a265a74685206ced310cfb2d1 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
class WebComponentButton extends HTMLElement { | |
constructor() { | |
super() | |
this.addEventListener('click', () => { | |
console.log('click') | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment