Post

Nice post! I think a couple of claims are a little off though, in particular there are common patterns that make web components easily do things you say they can't in the article...

Like setting properties. This is not a Lit abstraction. Properties are plain JS. You can implement them without any helpers. And you can set them from plain JS too, or from frameworks an libraries like React, Angular, Vue, Lit, Stencil, FAST, etc. Lit just provides a way to do it from templates.

Yeah, Lit has a construct in its `html` tagged literal that let's you denote property assignment. But this is an assignment made in the litJS templating framework. I don't think I said setting a property was not possible with web components, it's just awkward without those abstractions ๐Ÿค”

0 reposts0 likes

No replies yet.