chore: update example to be the same as readme

This commit is contained in:
Joao Goncalves
2025-11-03 00:56:27 -01:00
parent 61ce1d4258
commit 57b22de0e4
2 changed files with 5 additions and 51 deletions

View File

@@ -9,13 +9,13 @@ func main() {
v := via.New()
v.Page("/", func(c *via.Context) {
greeting := c.Signal("Hello...")
greetBob := c.Action(func() {
greeting.SetValue("Hello Bob!")
c.SyncSignals()
})
greetAlice := c.Action(func() {
greeting.SetValue("Hello Alice!")
c.SyncSignals()