© Francesco Strazzullo 2019
F. StrazzulloFrameworkless Front-End Developmenthttps://doi.org/10.1007/978-1-4842-4967-3_4

4. Web Components

Francesco Strazzullo1 
(1)
TREVISO, Treviso, Italy
 

All the major front-end frameworks that developers use today have something in common. They all use components as basic blocks for building the UI. In Chapter 2, you saw how to create a component registry based on pure functions. On (almost) all modern browsers, it’s possible to create components for your web applications with a suite of native APIs known as web components.

The APIs

Web components consist of three main technologies that let developers build and publish reusable UI components.
  • HTML templates. The <template> tag is useful if you want to keep content ...

Get Frameworkless Front-End Development: Do You Control Your Dependencies Or Are They Controlling You? now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.