by spankalee · 1y ago · 0 comments
Here's a lit-html template that sets a property:
html`<my-element .someProp=${x}></my-element>`The goal of web components is to enable interoperable, encapsulated, reusable components, where how they're built is an implementation detail.
You can use a web component that used lit-html without knowing anything about lit-html, it even that the component uses it.
Why bother when I can just write everything in a single framework?