Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


Yup, connectedCallback is a lot nicer than a for loop applying the right code to the right divs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: