From f8aac1420f34a52e51f8764f73fba834380bde6b Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 20 Nov 2023 22:14:37 +0100 Subject: [PATCH] counter example --- demo/Counter.mjs | 2 -- demo/index.html | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/Counter.mjs b/demo/Counter.mjs index 78971d4..83c4507 100644 --- a/demo/Counter.mjs +++ b/demo/Counter.mjs @@ -3,12 +3,10 @@ import WebComponent from "../src/WebComponent.js"; export class Counter extends WebComponent { static properties = ["count"]; - onInit() { this.props.count = 0; this.onclick = () => ++this.props.count; } - get template() { return ``; } diff --git a/demo/index.html b/demo/index.html index d73cd25..3620fc6 100644 --- a/demo/index.html +++ b/demo/index.html @@ -7,9 +7,11 @@ + +