Packages

LiveView-style runtime for Gleam.

Current section

Files

Jump to
lightspeed include lightspeed@component_Component.hrl
Raw

include/lightspeed@component_Component.hrl

-record(component, {
init :: fun(() -> any()),
update :: fun((any(), any()) -> {any(),
list(lightspeed@component:command(any()))}),
render :: fun((any()) -> lightspeed@component:rendered())
}).