Post

Honest question, do web components REQUIRE javascript? Without js, do they just break the page?

the best thing about web components is that there’s tons of ways to use the specs that combine to make up that term. you can do “custom elements” which are just your own HTML tags that you can style with css with no js involved.

0 reposts2 likes

if you want a progressively-enhanced experience then there are two ways to go, the “html web components” approach which uses js to augment the existing html, or shadow dom that upgrades the custom element when js is rendered. you can use declarative shadow dom with no js, or anything in between!