Web Components are bad for you
bykozy.me·1d·
Discuss: r/webdev
🌐Web Development
Preview
Report Post

I used to look at Web Components like “what is this? Is it some modern thing I don’t understand, am I supposed to employ it now?”. As people move away from bloated JS SPA, some of them turn their attention to Web Components.

To not keep the suspense: Web Components are useless in their current design. The original idea of progressive enhancement is hopelessly lost, “you don’t need the JS framework” turned into Lit, Polymer, Stencil effectively creating frameworks on top of Web Components. The idea of “button handling its own logic” was doomed, the distributed logic is much harder to support and you really don’t need to support it, the model of “logic handles the buttons” is more concise and easier to reason about ­— th…

Similar Posts

Loading similar posts...