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

web components are a failed standard, it was a good idea 10 years ago but now its a very bad idea


What makes them bad?


There are so many downsides of choosing web components you really need a very rare usecase to justify them. They are an artefact of a time we're all glad to be done with, they force you into OOP so you're doing inheritance acrobatics, add TS and now you're feeding two hierarchies of inheritance that don't quite match and bloat to a 80% of your codebase, making it unreadable, prone to hacks and bugs, impossible to maintain etc. The point of web components was to make components more shareable between frameworks, and code more reusable, but now code written in any of the major FE frameworks is more reusable (a component looks pretty much the same in React, Vue, Svelte, but not with web components).




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

Search: