diff --git a/site/src/pages/index.html b/site/src/pages/index.html
index e5f85ef..b3e8965 100644
--- a/site/src/pages/index.html
+++ b/site/src/pages/index.html
@@ -29,7 +29,7 @@
By extending our base class, you get an easy authoring experience as you would expect in writing your components:
- - A reactive props API that synchronizes your components' property values and UI
+ - A signals-like props API that synchronizes your components' property values and UI
- Sensible life-cycle hooks that you understand and remember
- Extensible templates & renderer (examples in-progress)
- Provided out-of-the-box with McFly, a powerful no-framework framework
diff --git a/type-restore/Counter.mjs b/type-restore/Counter.mjs
index bf17f0b..5041d47 100644
--- a/type-restore/Counter.mjs
+++ b/type-restore/Counter.mjs
@@ -4,8 +4,12 @@ import WebComponent from "../src/WebComponent.js";
export class Counter extends WebComponent {
static properties = ["count"];
onInit() {
- this.props.count = 0;
+ this.props.count = 1;
this.onclick = ()=> ++this.props.count
+ let double = () => this.props.count * 2;
+ console.log(double());
+ this.props.count = 3;
+ console.log(double());
}
get template() {
return ``;
diff --git a/type-restore/index.html b/type-restore/index.html
index 599deac..9d3bad5 100644
--- a/type-restore/index.html
+++ b/type-restore/index.html
@@ -18,7 +18,7 @@
Counter:
-
+