+class ClickCounter extends LitElement {
+ static get properties() {
+ return { value: { type: Number } };
+ }
+
+ static get styles() {
+ return css`
+ button { color: red; font-size: 150%; };
+ `;
+ }
+
+ constructor() {
+ super();
+ this.value = 0;
+ }
+
+ render() {
+ return html`<button type="button" @click="${ e => { this.value += 1 } }">${ this.value }</button>`;
+ }
+}
+