|
|
|
|
|
by jongjong
933 days ago
|
|
I find that they can work very well with state but since state is typically passed via attributes (downstream), it means that components can only share state with each other via strings. I found this to be an advantage, not a drawback because simple interfaces are at the core of my coding philosophy and strings make it infeasible to pass complex instances or functions to other components. |
|
For example lit-html templates support syntax like:
<my-element .someProp=${new Foo()}></my-element>