Can be reduced
customElements.define('like-button', class LikeButton extends HTMLElement {
connectedCallback() {
this.innerHTML = '<button></button>'
this.addEventListener('click', this.onClick, true)
}
onClick() {
this.innerText = 'You liked this'
}
})