Tour of Lux · chapter 7 of 8
Apps & views
Declarative UI that renders live, right here.
An
app bundles state and a view: — a declarative layout tree of column / row / text / button. Event handlers hang off elements with on:click. This cell renders the app live: click the buttons — each interaction dispatches into the WASM session, re-renders the view, and ticks the session receipt.Views are expressions, so
if works inside them. State changes re-render the tree — there is no manual DOM work anywhere.