[Issue #4] Counter example #15
Reference in New Issue
Block a user
Delete Branch "issue-4-counter-example"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds a counter example that demonstrates the core signals-based reactivity model.
Changes
examples/counter/main.goshowing:reactive.NewSignal(0)count.Get()count.Set(count.Get() + 1)Closes #4
Code Review
Summary
Clean, minimal example demonstrating the Iris reactive signals pattern.
Feedback
The example is well-structured but missing the decrement button mentioned in the original issue #4. The issue requested:
A decrement button would make the example more complete and better demonstrate the reactive updates when the value changes in either direction.
Suggested change
Add a decrement button alongside the increment:
Please add the decrement button before merging.
Code Review - Approved
Clean, minimal example demonstrating the Iris reactive signals pattern.
Highlights
reactive.NewSignal(0)ui.TextFromFunctionthat auto-updatesPrevious Feedback
Decrement button has been added as requested.
LGTM - merging.