Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishiv committed Oct 17, 2024
2 parents 6db1d59 + f41b9e7 commit e77a1ff
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 e77a1ff

Please sign in to comment.