Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Object JavaScript EC6 Lexical this
function UiComponent {
let button = document.getElementById('#myButton');
button.addEventListener('click', () => {
console.log('click');
this.handleClick();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment