Web Developers Mozilla’s XML Binding Microsoft’s HTML” Developers love components they are a great way to define blocks of code that can be dropped in and reused anywhere they are required. there have been a few attempts to convey this idea on the web over the years with varying degrees of success, but not around in this modern web era.
One of the main reasons for their success:-itwords.org
is the ability to contain common logic in an easily sharable pattern in one form or another. While these frameworks can improve the developer experience, they do so at a cost. Language features such as JSX need to be compiled, and many frameworks rely on runtime to manage all of their abstractions. Wouldn’t it be easier if there was a way to get the benefit without all that heavyweight? Web components allow us to do just that.
By using the same communication mechanisms as any other element, they can be used alongside any framework that exists today or in the future. Most importantly of all, these are all built upon web standards. The web is built on a concept of backward compatibility.
and by building a web component today it will carry on working for years to come. But before going any further, we should take a look at what makes up these specifications, and how you can get creating and using one today.