3 ms·
> 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
by azangru 3y ago
> 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 https://youtu.be/jBJ7eoPtmY8?t=367