From f41b9e7df5214a36e220b4ff976933f63eff1c32 Mon Sep 17 00:00:00 2001 From: Abhishiv Saxena Date: Thu, 17 Oct 2024 23:36:34 +0530 Subject: [PATCH] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4f72517..c0e8c67 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ import { component, h, render } from "alfama"; const Page = component("HomePage", (props, { signal, wire }) => { // 2) Named signals for stable HMR const [count, setCount] = signal("count", 0); + // or $count = signal("count", 0) and then $count.get/$count.set // 3) Most importantly: wire reactivity to signals // with explicit subscription using the $ token param