Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

What are Web Components

Web Components are a set of browser standards which allows us to create Custom HTML elements and use them in HTML pages. Web Components use 3 technologies to create these reusable elements.

Custom Elements – JavaScript class which contains the Element’s definition and behavior.
Shadow DOM – Used to render to custom component separately without affecting the actual DOM.
HTML Templates – The

Web Component can be created by first creating a class with the actual component implementation. Once the class is created use CustomElementRegistry.define() register the custom element. 



This post first appeared on C# Guide, please read the originial post: here

Share the post

What are Web Components

×

Subscribe to C# Guide

Get updates delivered right to your inbox!

Thank you for your subscription

×