DEV Community

Cover image for Introduction to HTML Web Components 💻📝

Introduction to HTML Web Components 💻📝

Aryan Dev Shourie on February 18, 2024

The HTML Web Components are reusable, custom HTML elements which you can define and create yourselves, and can be used anywhere within your HTML co...
Collapse
 
dannyengelman profile image
Danny Engelman

BTW

constructor() {
        super();
    }
Enter fullscreen mode Exit fullscreen mode

is pointless, by default every class calls its super class methods when not defined

Collapse
 
efpage profile image
Eckehard

Thank you for your introduction.

Do we need to expect any problems using Webcomponents with a virtual DOM?

Collapse
 
dannyengelman profile image
Danny Engelman

Only with React 18, you need to create wrappers for Native DOM Events.
React is to blame, it doesn't support the standards.
See: custom-elements-everywhere.com/
All other Frameworks work fine.
First signals for React-19 is they finally solved that.