Skip to content

Commit e8fc763

Browse files
fix(marketing): hero counter uses shorthand count += 1 (#3)
Marketing pitch advertises 'wrap a value in wire() and any template that reads it updates automatically' — keep the snippet to the shorthand, not .value.
1 parent 80d72ce commit e8fc763

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

site/src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const pywireCode = `---
2121
count = wire(0)
2222
---
2323
<p>Count: {count}</p>
24-
<button @click={count.value += 1}>
24+
<button @click={count += 1}>
2525
Add One
2626
</button>`
2727

0 commit comments

Comments
 (0)