Created
May 5, 2021 12:21
-
-
Save smpnjn/d3caf0b02c2da15aa7af9349792e723c to your computer and use it in GitHub Desktop.
This file contains 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 Paragraph extends HTMLElement { | |
constructor() { | |
super() | |
this.innerHTML = '<p>Hello</p>' | |
} | |
connectedCallback() { | |
// ... | |
} | |
attributeChangedCallback() { | |
// ... | |
} | |
} | |
customElements.define('alpha-paragraph', Paragraph); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment