←back to thread

277 points merqurio | 3 comments | | HN request time: 0.558s | source
Show context
o_m ◴[] No.45113665[source]
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.

replies(3): >>45113699 #>>45114073 #>>45116966 #
1. rs186 ◴[] No.45116966[source]
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.
replies(2): >>45117368 #>>45119190 #
2. fkyoureadthedoc ◴[] No.45117368[source]
Don't know the current state of lit-html and similar, but Typescript support was the biggest thing missing for me when I used it several years ago.

In simple scenarios like just dropping it in an html page, codepen, or something like that I really enjoyed it though.

3. o_m ◴[] No.45119190[source]
I mean sure, as long as it runs on the server. Personally I feel JSX is way more expressive. The JSX I write runs on server side rendering to HTML. That way there will be no flash of unstyled content, cumulative layout shift, or any other jank. It looks correct even before the javascript has been downloaded, except it isn't interactive yet.