wcb/site/src/components/my-counter.js
2024-12-19 22:43:12 +01:00

10 lines
201 B
JavaScript

class Counter extends WebComponent {
static props = {
count: 0,
}
get template() {
return html`<button onClick=${() => ++this.props.count}>
${this.props.count}
</button>`
}
}