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

If you really want something that will get of your way, use Web Components. They're a web standard, after all.


I read an article about them recently. I love the idea of an standard but it feels so "committee design" with a lot of good ideas but completely throwing out the window simplicity.

The older I get as a developer the more I realize that simple is not easy to accomplish. That's probably why I like svelte :)


Svelte has an option to output Web Components, so it might be a good option if you want to use them while still writing your code in a React-y "declarative UI" style.


Did not know this. That's a game changer for me in considering Svelte, thanks.


React, Vue and Svelte solve 2 big problems.

1. components (creating re-usable UI parts (i.e. components) that combine data and their rendering)

2. reactivity - re-rendering UI when data changes.

Web Components only solve one of those problems. And arguably not as well.


is it only me or a standard that includes what we have learned from UI frameworks included in the browser would be really nice?


Lit-Element solves #2


Web components are a great idea, but the current implementation sucks and is a pain to use though. Web components should look like what Svelte did!




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

Search: