| HTML-first | JS-first |
mponents
class FullWebComp extends HTMLElement { constructor() { super();this.attachShadow({mode: 'closed'}) .appendChild(document.getElementById('h2-template') .content .cloneNode(true)); } }customElements.define('full-web-comp', FullWebComp);
style + h2