component HomePage {
route {
title: "Noxid App"
}
state {
count: Int = 0
}
actions {
increment() { count = count + 1 }
}
view {
<main>
<h1>Noxid App</h1>
<button +click={increment}>Count {count}</button>
</main>
}
style {
main { font-family: system-ui, sans-serif; padding: 2rem; }
button { cursor: pointer; }
}
}