Skip to content

Commit 541f0e3

Browse files
small edit
1 parent 3c4a220 commit 541f0e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/dsl-client/hyper-component.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,9 @@ class Counter < HyperComponent
539539
end
540540

541541
render(DIV) do
542+
# note how we mutate count
542543
BUTTON { "+" }.on(:click) { mutate @count += 1) }
543-
P { @count.to_s } # note how we access the count variable
544+
P { @count.to_s }
544545
end
545546
end
546547
```

0 commit comments

Comments
 (0)