5 ms·
I think you confused multiple things together - why do you bring webcomponents.org the website into discussion, it has no relation here. Web components are a l
by ergo14 8y ago
I think you confused multiple things together - why do you bring webcomponents.org the website into discussion, it has no relation here.
Web components are a low-level primitive - they are clunky to use directly.
Polymer and LitElement - are libraries - you can author WC's with them. And yes they are different (I used both), but you don't really have to migrate from one to another.
Web components are not divided - Lit-element can work within vuejs or polymer or angular for example. VueJS authored WC's can work within lit-element or polymer.
https://custom-elements-everywhere.com/ https://custom-elements-everywhere.com/ - see this for more information about interoperability (sometimes it depends on templating syntax).
You asked about Svelte and Stencil - https://svelte.technology/ https://svelte.technology/, https://stenciljs.com/ https://stenciljs.com/ - those compile your code into web components - different approach than polymer that is a suite of quite a few higher-level abstractions that you might not want to pay for (20kb of js).
- Eli_P 8y agoThanks for links you provided. Don't know what you mean by saying it has no relation; I've been using that site for searching components while developing my PWA based on Polymer. I can install components with yarn or npm just fine, using instructions and examples from there.
- ergo14 8y agoYes, but the website is not only for polymer elements, you can find components written in other libraries too, like lit, svelte or even vue. That's what I meant - it is just a website that serves as information aggregator from bower/npm.