News for hackers. Stuff that matters.
Re:If Web Components are so great, why am I not using them? by azangru on Thursday August 03, 2023 @03:04AM (#36982351)
> Without the shadow dom, though, what really is the difference from just using `<div>` elements?

Having a lifecycle that you can hook into to know when to run code related to this particular instance of the custom element.

See e.g. a recent talk on web components — https://youtu.be/jBJ7eoPtmY8?t=367

There are no comments on this comment yet.