pream
Types
https://npmx.dev/package-docs/preact/v/10.29.2#class-ComponentChildren
pub type PreactComponent
Values
pub fn to_preact(from node: vnode.VNode) -> PreactComponent
https://npmx.dev/package-docs/preact/v/10.29.2#function-h
converts a vnode tree into a preact
ComponentChildren value, ready to pass to
preact’s render()
pub fn unwrap(
render component: fn(p) -> Result(vnode.VNode, b),
with props: p,
) -> vnode.VNode
unwraps a Result-returning render function.
an Error is silently coerced into an empty
vnode — useful when a component is allowed to
fail without taking down the whole tree
pub fn unwrap_option(
render component: fn(p) -> option.Option(vnode.VNode),
with props: p,
) -> vnode.VNode
unwraps an Option-returning render function.
None is silently coerced into an empty vnode