I've had a loooootttttt of people ask me about Lit. Lit is a framework for creating Web Components, built by Google. It includes data reactivity, a tool for rendering CSS-in-JavaScript, and DOM diffing. As you can probably imagine, I hate it. Here's the example they show on their homepage…
The other day, I wrote about the wrong way to do Web Components, noting…
Same thing with Lit. The second you introduce a third-party dependency, you're locked in. You've completely eroded the value of using platform-native technology. And I also just think Web Components are the wrong tool for this kind of job. The need for a library to handle reactivity and DOM diffing kind of proves that point. Like this? You can support my work by purchasing an annual membership. Cheers, Want to share this with others or read it later? View it in a browser. |
0 Komentar untuk "[Go Make Things] What about Lit for Web Components?"