radh-ui
Version:
Stencil Component Starter
24 lines (23 loc) • 623 B
JavaScript
import { Component, h, State } from '@stencil/core';
export class RadhCounter {
constructor() {
this.count = 0;
this.increment = () => {
this.count = this.count + 1;
};
}
render() {
return (h("div", null,
h("radh-button", { onClick: this.increment }, this.count)));
}
static get is() { return "radh-counter"; }
static get originalStyleUrls() { return {
"$": ["radh-counter.css"]
}; }
static get styleUrls() { return {
"$": ["radh-counter.css"]
}; }
static get states() { return {
"count": {}
}; }
}