3 ms·
Web components can be used without a front-end JS framework (Vue, React, etc.) which I think is one of its best features. There is a mild complexity to it since
by andirk 3y ago
Web components can be used without a front-end JS framework (Vue, React, etc.) which I think is one of its best features. There is a mild complexity to it since it encompasses the javascript and HTML including creating the HTML element type (or whatever it's called).
> This is about as close as you can get to the original vision for web components, which is that using <fancy-element> should be as easy as using built-in HTML elements.
- MBCook 3y agoBut how many people who would want the additional features they could get with web components over strict HTML aren’t already using a framework?
- JodieBenitez 3y agocount me in :)
- troupo 3y agoThe original vision also included "we don't need JS do display <fancy-element>" and "we shouldn't have a curse of empty <body> tag where everything is filled by javascript", but here we are. Dozens of JS-only standards to make web components work, with 20 more JS-only standards to fix deficiencies and holes in the original design: https://w3c.github.io/webcomponents-cg/2022.html#cross-root-aria https://w3c.github.io/webcomponents-cg/2022.html#cross-root-...