We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b912c99 commit 4ed93eeCopy full SHA for 4ed93ee
2 files changed
examples/counter/app.gx
@@ -2,7 +2,7 @@ package main
2
3
import "strconv"
4
5
-func App() {
+func App() (Component) {
6
counter := make(chan int, 10)
7
8
Div(Class("app-container")) {
examples/counter/counter.gx
@@ -1,6 +1,6 @@
1
package main
-func Counter(counterChannel chan int) {
+func Counter(counterChannel chan int) (Component) {
Div(Class("counter-display")) {
Span(Class("counter-value")) {
`Counter: {<-counterChannel}`
0 commit comments