-- DreamStack Counter Example
-- A simple reactive counter demonstrating signals, derived values,
-- and declarative UI with automatic dependency tracking.

let count = 0
let doubled = count * 2
let label = "hello"

view counter =
  column [
    text label
    text doubled
    row [
      button "-" { click: count -= 1 }
      button "+" { click: count += 1 }
    ]
    when count > 10 ->
      text "On fire!"
  ]
