←back to thread

277 points merqurio | 4 comments | | HN request time: 0.007s | source
1. kavaruka ◴[] No.45113285[source]
I have been using Lit in production for 3 years now. I think it is the best abstraction over the web components API out there.
replies(1): >>45113325 #
2. selectnull ◴[] No.45113325[source]
Same here.

I have actually wrote a few web components by hand in an environment where I didn't want any external dependencies and when that requirement was dropped I really liked how easy was to convert them to LitElement (and how much nicer it is to work with them).

I also have embraced the shadow DOM which is a default, but I think it's more trouble than it's worth. Now I use LitElement without shadow DOM and it works great as well.

replies(1): >>45114386 #
3. brazukadev ◴[] No.45114386[source]
Same about the shadowDOM. The only criticism I have about Lit is that the creators think shadowDOM is amazing and people not liking it are using it wrong. Lit lacks a good direction and someone with vision leading it but it became the technical pet project of a few.
replies(1): >>45115983 #
4. selectnull ◴[] No.45115983{3}[source]
The ability to locally scope styles is a great feature of shadow DOM. For that alone I can see why it's being pushed.

It's trivially easy to create Lit components without shadow DOM so I don't really care and use both.