8 ms·
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.
by kavaruka 1y ago
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.
- selectnull 1y agoSame 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.
- brazukadev 1y agoSame 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.
- selectnull 1y agoThe 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.