lustre
To read the full documentation for this module, please visit https://lustre.build/api/lustre
Types
Functions
pub fn application(
init: fn(a) -> #(b, Effect(c)),
update: fn(b, c) -> #(b, Effect(c)),
view: fn(b) -> Element(c),
) -> App(a, b, c)
pub fn component(
name: String,
init: fn() -> #(a, Effect(b)),
update: fn(a, b) -> #(a, Effect(b)),
view: fn(a) -> Element(b),
on_attribute_change: Dict(
String,
fn(Dynamic) -> Result(b, List(DecodeError)),
),
) -> Result(Nil, Error)
pub fn is_browser() -> Bool
pub fn is_registered(name: String) -> Bool
pub fn simple(
init: fn(a) -> b,
update: fn(b, c) -> b,
view: fn(b) -> Element(c),
) -> App(a, b, c)