MVU
Model-View-Update
type Msg =
| ...
/// The MODEL from which the view is generated
type Model =
{ ... }
/// Returns the initial state
let init() = { ... }
/// The funtion to UPDATE the view
let update (msg:Msg) (model:Model) = ...
/// The VIEW function giving updated content for the page
let view (model: Model) = ...
module App =
let runner =
Program.stateful init update view
|> Program.withConsoleTraceThe model
The view function
The update function
Last updated