- Web components are a set of web platform API.
- Web components allow us to create custom re-usable widgets or component in a web application.
- Web components are a part of the browser and will work across all modern browser.
- Web components doesn’t require need any external libraries to work.
Features
- Custom Elements – let write our own fully featured DOM elements.
- Shadow DOM – gives the best feature of a iframe, style and markup for the web page.
- HTML Templates – allows to store some markup on the web page and we can later clone and reuse them.
- HTML Imports – allow to import an external HTML document.