2 ms·
Btw if you liked Polymer 2.0/3.0 you may also like Lit (formerly lit-element)[0]. It has a less "proven" ecosystem around state/async action management and som
by hardwaresofton 5y ago
Btw if you liked Polymer 2.0/3.0 you may also like Lit (formerly lit-element)[0].
It has a less "proven" ecosystem around state/async action management and some other concerns (i.e. there's no redux/vuex), but the controller paradigm[1] looks pretty fresh and interesting. I'm of the belief that most of the time doing an async request or two and some caching and good architecture is enough for most app (not everyone needs the flux pattern).
Lit is by the best implementation and standards-compliant component-centric library IMO. Tried a bunch of them back when I was trying to figure out if there's a better way to handle state in a component-centric world[3].
[0]: https://lit.dev/ https://lit.dev/
[1]: https://lit.dev/docs/composition/controllers/#building-controllers-from-other-controllers https://lit.dev/docs/composition/controllers/#building-contr...
[3]: https://mrman.gitlab.io/services-as-dom-elements https://mrman.gitlab.io/services-as-dom-elements
- sativallday 5y agoLit doesn't have HTML imports. This is why lit-element is nothing compared to Polymer with HTML imports: https://lit-element.polymer-project.org/guide/templates https://lit-element.polymer-project.org/guide/templates DOM in JS is an anti-pattern from a DX perspective.