Web Components
Web Components are a set of features that provide a standard component model for the web allowing for encapsulation and interoperability of individual HTML elements. Web Components are a popular approach when building microfrontends.
Primary technologies used to create Web Components include:
- Custom Elements
- APIs to define new HTML elements
- Shadow DOM
- encapsulated DOM and styling, with composition
- HTML Templates
- HTML fragments that are not rendered, but stored until instantiated via JavaScript