Create web components using Google Lit
Web components are a set of technologies that allow us to create reusable HTML elements, in which all features are encapsulated within their code.
The advantage of using web components is that they can be used anywhere: in HTML/VanillaJS, Vue, #react, #angular applications and in any other modern (or future) JS framework/library.
However, Native APIs for creating #webcomponents are not very pleasant to use. The DX is horrible 🤮
Frameworks like “Google #lit” greatly simplify their creation and in these slides I’ll describe:
➡️ how to create web components using Lit
➡️ publish a web component on npm
➡️ use the web component in vanilla JS, Angular and React
Let me know if you liked this content and remember to follow me on:
• YouTube: https://lnkd.in/gTjvc_J4
• Twitch: https://lnkd.in/d2v6mHc