11 lines
267 B
Text
11 lines
267 B
Text
|
|
-- Shared state module — exported values used by the main app
|
||
|
|
|
||
|
|
export let shared_count = 0
|
||
|
|
|
||
|
|
export component Counter =
|
||
|
|
column [
|
||
|
|
text "Shared counter: {shared_count}"
|
||
|
|
button "+" { click: shared_count += 1 }
|
||
|
|
button "-" { click: shared_count -= 1 }
|
||
|
|
]
|