3 ms·
What's the advantage of this over just using divs for everything, though? If this used shadow dom, I could understand. But custom elements don't even behave lik
by webstrand 3y ago
What's the advantage of this over just using divs for everything, though? If this used shadow dom, I could understand. But custom elements don't even behave like blocks by default. Namespace collisions with custom components are just as bad as class collisions, if not worse since you can't `.myns.button`. Is it just the `connectedCallback` versus some manual method of wiring up elements to their javascript behaviors?
- sirwhinesalot 3y agoYup, connectedCallback is a lot nicer than a for loop applying the right code to the right divs.