DEV Community

donoberry
donoberry

Posted on

Shall we web component?

Hello there, you are probably wondering if web components are something you should use. Web Components are growing in popularity. Check out the graph. image. That image and more basic web component info comes from here.

Web components are custom elements that are open source. They can be picked up and used by anyone. There are so many tech stacks. Applications can built using Angular, React, Ember, Vanilla JavaScript, or basic HTML. Web components are functional, yet separate from the code. They can exist in any of these environments.

Web components can help expand the HTML tags. Web components can mix together. Web components from different libraries can mixed on the same page.

Using web components can be more efficient for businesses because web components work with any Javascript framework. Web components can make it easier on developers. Something does not need to be created every time, just create a web component once, and then share it across the company. This also ensures accuracy. If the web component is correct, it will create the same thing each time. There will be less coding error. This link has some more info on why to use web components.
Thanks to the open source nature, improvements can happen faster, as more eyes can look at the web component. They also can be shared faster.

This article by Benny Powers (amazing name) takes a deeper dive into web components.

YouTube (ever heard of it?) uses web components. I inspected the webpage and we can see the web component tags YouTube uses. Alt Text You can then go here to learn what that web component does. It allows users to define their own icon sets that contain svg icons.

EA uses web components. Alt Text They do not appear to have any micro transactions or loot boxes in their source code.

Even this newspaper, my central jersey, uses web components. The iron-ajax element "declaratively exposes network request functionality to Polymer's data-binding system." Don't pretend like you know what that means. Alt Text New Jersey sucks and they still have web components. New Jersey is just garbage overflowing from New York City. There is no reason for you to not try them out too, if New Jersey can do it.

meme
Here is a video discussing web components.

Top comments (2)

Collapse
 
dannyengelman profile image
Danny Engelman

Cool, its 2021,
and you show a graph not listing anything past halfway 2019

Collapse
 
donoberry profile image
donoberry

:(