4 ms·
this seems pretty cool - I love me some `lit-html`. How do you feel about Cami versus straight up Lit?
by mock-possum 3y ago
this seems pretty cool - I love me some `lit-html`. How do you feel about Cami versus straight up Lit?
- kennyfrc 3y agoYou can consider Cami as the light dom sibling of Lit (which uses shadow dom). Cami loses out on slots & style encapsulation, but you can style Cami components with normal / global css like it’s part of the normal dom. And since there’s no shadow dom overhead, it’s more performant and there is no FOUC if you load CSS in <head>.
- Valord 3y agoI just nope out of the Shadow dom in lit to get external css using createRenderRoot. Mentioned here https://stackoverflow.com/questions/55400222/how-do-you-use-bootstrap-with-lit-element#55427496 https://stackoverflow.com/questions/55400222/how-do-you-use-...
- jack_the_dev 3y agoWondering the same thing. What is the value proposition versus using other popular web component libraries like Lit?
- Valord 3y agoI use pure no-build lit for the "interactive islands" the repo describes. Nice to see others have the same idea even if we're not taking the same approach.