3 ms·
I like the idea of Lit a lot, but every time I’ve tried to use it, it feels kind of unclear what the intended way of using it actually is. Like, what an actual
by roblh 3y ago
I like the idea of Lit a lot, but every time I’ve tried to use it, it feels kind of unclear what the intended way of using it actually is. Like, what an actual code base that uses it heavily would look like. All of their example code seems to have no context around it at all, so it’s really difficult to infer from that how to actually make anything useful, or even how to get started. I hope they sort that out at some point.
- mock-possum 3y agoHonestly you can organize it however you like, it’s just an easier way to define native web components. Picture angular, or vue, or react - only with native web components and the shadow dom, instead of a vdom. You can use whatever routing you like, use whataver state management you like. Lit just helps you make web components.
- antifa 3y ago"Do whatever you want" isn't a useful answer to "I don't know what to do with this."
- kaycebasques 3y agoWould a beefy sample app fill the gap? Something that demonstrates a complex real-world use case.
- spankalee 3y agoThere are lots of open-source design systems built with Lit. Shoelace is a popular component set that you might check out: https://github.com/shoelace-style/shoelace https://github.com/shoelace-style/shoelace There are many others... Would it help if we listed more open source projects on our site? Because of our focus on components and the fact that you really can use just about any libraries and scaffolding for apps, we don't really have an app starter kit, but it's something we've talked about.
- roblh 3y agoI wasn’t aware of shoelace, I’ll take a look! I think the starter kit would be beneficial, just a way of laying out how the pieces fit together.