Skip to content

Instantly share code, notes, and snippets.

@Danny-Engelman
Created July 15, 2023 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Danny-Engelman/ee69be2c0cdd0bbc06508d4b5718b8c7 to your computer and use it in GitHub Desktop.
Save Danny-Engelman/ee69be2c0cdd0bbc06508d4b5718b8c7 to your computer and use it in GitHub Desktop.
A customElements.define basic template
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