▲ | o_m 7 days ago | |||||||||||||
I don't see the need for Lit anymore. Lately I have just been raw dogging web components without any libraries. Having a nice templating system like JSX on the server makes it a breeze. Part of using web components, for me, is that it is just javascript. There is no upgrades or deprecations to think about. Of course those things still exist on the server though, but it is easier to maintain it there. | ||||||||||||||
▲ | jfagnani 7 days ago | parent | next [-] | |||||||||||||
The great thing about web components is that you can build them however works best for you. Native web component APIs don't have the DX that many people expect though, because they are so low-level. Lit provides just that declarative reactivity on top. | ||||||||||||||
▲ | mariusor 7 days ago | parent | prev | next [-] | |||||||||||||
Personally I find that lit abstracts quite well some pieces of functionality that you're going to implement yourself anyway to not have to write manual <template> all over your code plus the plumbing to add it to the DOM. | ||||||||||||||
| ||||||||||||||
▲ | rs186 7 days ago | parent | prev [-] | |||||||||||||
I find that there is little practical difference between "html" tagged template literal and writing JSX. Not to mention there is a compilation step in JSX. | ||||||||||||||
|