[Issue #2] Hello World example #13
Reference in New Issue
Block a user
Delete Branch "issue-2-hello-world-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
examples/hello/main.goCloses #2
Test plan
GOOS=js GOARCH=wasm go build -o app.wasm ./examples/hello/🤖 Generated with Claude Code
AI Code Review
Summary
This PR successfully adds a minimal hello world example that demonstrates Iris's core reactivity features. The code is clean, well-structured, and meets all the requirements specified in issue #2.
Findings
Code Quality
//go:build js && wasmconsistent with other WASM-specific files in the codebasePotential Bugs
select {}blocks indefinitely anyway, but in a real app this pattern would need cleanup. This is fine for a hello world example.Security Concerns
Style Notes
reactive.NewSignal(0),ui.NewView(),ui.TextFromFunction(), andui.NewApp()exactly as defined in the codebaseTest Coverage
Verdict
LGTM
This PR perfectly meets the requirements of issue #2:
The code is production-ready and serves as an excellent first example. Ready to merge.