wcb/demo/examples/props-blueprint/hello-world.js
Ayo ce30b114a2 chore: new demo workspace & e2e tests
- this adds a new demo web app with vite HMR for development
- all examples are covered with e2e tests
2026-07-05 15:40:53 +02:00

12 lines
274 B
JavaScript

import { html, WebComponent } from 'web-component-base'
export class HelloWorld extends WebComponent {
static props = {
myName: 'World',
}
get template() {
return html`<p>Hello ${this.props.myName}</p>`
}
}
customElements.define('hello-world', HelloWorld)