Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishiv authored Oct 17, 2024
1 parent 271256f commit f41b9e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f41b9e7

Please sign in to comment.