Lit: a library for building fast, lightweight web components
1–10 of 180 posts
Re: Lit: a library for building fast, lightweight web components
#2Lit is amazing, I'm a big fan of Astro for using it as static websites, blogs, etc., but Lit would've been the second choice if not Astro.
Re: Lit: a library for building fast, lightweight web components
#3Great project but I can't stand syntax such as decorators.
Re: Lit: a library for building fast, lightweight web components
#4Great project but I can't stand syntax such as decorators.
They are optional for what it’s worth. They are also landing in standard JS soon.
Re: Lit: a library for building fast, lightweight web components
#5Hands down the most underrated front end library out there. It powers some major projects like ChromeOS, Chrome Devtools, I think most of Firefox’s UI, Photoshop for the web, MDN etc.
Re: Lit: a library for building fast, lightweight web components
#6I just came across this resource the other day and found it super helpful, thought I would share it here for anyone who’s interested in working with Lit.
Re: Lit: a library for building fast, lightweight web components
#7Great project but I can't stand syntax such as decorators.
They are optional for what it’s worth. They are also landing in standard JS soon.
The proposal is stuck at stage 3. AFAIK, to proceed to stage 4, it needs two independent implementations, but Firefox [0] and Chromium [1] didn't see any progress in this area for about a year. Personally, after working with Angular for many years, that's not a language feature I am looking forward to.
Re: Lit: a library for building fast, lightweight web components
#8I have been using Lit in production for 3 years now. I think it is the best abstraction over the web components API out there.
Re: Lit: a library for building fast, lightweight web components
#9The evolution of lit is fascinating to watch because it's built and promoted by people with rather visible and public dislike of everything React. And yet, it's already turned into React-lite.
- Custom HTML-like syntax
- Custom Javascript rules // valid JS, invalid lit
const tagName= "a";
`Some link`
- Custom rules for special functions. // classMap looks like a regular JS function, but it's not.
// Both of these will produce an error
Static and dynamic
Static and dynamic
- Context https://lit.dev/docs/data/context/- Experimental compiler: https://github.com/lit/lit/tree/main/packages/labs/compiler#...
Re: Lit: a library for building fast, lightweight web components
#10Great project but I can't stand syntax such as decorators.
Just to add to a sibling comment, they are optional and not in a “optional but if you dont use them it really sucks” kind of way.
The Lit authors tried hard to use vanilla JS everywhere they could, and it shows.