sprocket
Types
A StatefulComponent is a component that has an associated state, lifecycle and takes props
pub type StatefulComponent(p) =
context.StatefulComponent(p)
Functions
pub fn component(
c: fn(Context, a) -> #(Context, Element),
props: a,
) -> Element
Create a new stateful component element from a given component function and props.