Comment by akst
21 days ago
Web components come with additional complexity, heavy use of custom element definitions are more complicated to manage.
It’s more than just an aesthetic preference
But if you’re not really using web components it’s harmless but it’s a bit odd and pointless.
HTML had custom elements before Web Components (the complex modern JavaScript & Shadow DOM thing) came into being. https://www.w3.org/TR/2016/WD-custom-elements-20160523/
In case you’ve forgotten this is a thread on an article about web components.
If the underlying premise of your point was entirely independent of web components you’ve done pretty poor job of communicating it.
So you actually do that? Use custom elements without web components instead of using classes? Are you using in something like react with custom elements foregoing type safety to avoid a div element? Or is this just in plain HTML? How many custom elements does your typical web project have?
Or are you fixating on an irrelevant technicality to make an irrelevant point?
...?
The article is literally about not using web components. FTA:
> What would happen if we took the ideas of HTML Web Components and skipped all the JavaScript? [...] Okay great, we styled some HTML nested inside a custom element.
1 reply →