3 ms·
Sure class App extends HTMLDivElement {} customElements.define(“main-app”, App) <body><main-app/></body> This is the simplest web component
by reactordev 1y ago
Sure
class App extends HTMLDivElement {}
customElements.define(“main-app”, App)
<body><main-app/></body>
This is the simplest web component.
More examples:
https://github.com/mdn/web-components-examples https://github.com/mdn/web-components-examples