Function sauron::stateful_component
source · pub fn stateful_component<COMP, MSG, MSG2>(
app: COMP,
attrs: impl IntoIterator<Item = Attribute<MSG>>,
children: impl IntoIterator<Item = Node<MSG>>
) -> Node<MSG>where
COMP: Component<MSG = MSG2, XMSG = ()> + StatefulComponent + Application<MSG = MSG2> + 'static,
MSG: 'static,
MSG2: 'static,
Expand description
create a stateful component node