Created
July 15, 2023 07:35
-
-
Save Danny-Engelman/ee69be2c0cdd0bbc06508d4b5718b8c7 to your computer and use it in GitHub Desktop.
A customElements.define basic template
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
customElements.define("", class extends HTMLElement { | |
constructor() { | |
super() | |
.attachShadow({ mode: "open" }) | |
.innerHTML = `<style></style>`; | |
} | |
connectedCallback() { | |
this.innerHTML = ``; | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment