Std.Html.when
1 declaration
fn
when: Bool -> Std.Html.Html -> Std.Html.HtmlThis is a callable function.
What it does
One view or the other, for a branch that renders either.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
