I want to start leveraging http://webcomponents.me W3C standard which is now supported by all major web browsers.
I researched the internet and so far I found following frameworks:
Stencil - Created by ionic. All ionic components use this framework/compiler in order to build native supported web components.
lit-element - Created by Google and is part of Polymer framework.
SkateJS - Don't know how is behind this but it is in top 3 popular web components framework.
Can someone give me advice or opinion which framework is best?
Lit-html is basically a customizable construction kit for web components. It's “An efficient, expressive, extensible HTML templating library for JavaScript”. Meaning, Lit-html uses JavaScript template strings to create dynamic templates with template literals (example).
Lit is a fast, lightweight, reactive framework for building web components that work just about anywhere. Let's get started with Lit. Lit is one of the more interesting front-end JavaScript frameworks for reactive programming.
Stencil is a compiler that generates Web Components (more specifically, Custom Elements). Stencil combines the best concepts of the most popular frameworks into a simple build-time tool.
Stencil helps developers and teams build and share custom components. Since Stencil generates standards-compliant Web Components, the components you build with Stencil will work with many popular frameworks right out of the box, and can even be used without a framework because they are just Web Components.
If you want to build:
web components you could also consider using framework :
http://vanilla-js.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With