Define a case for Match()
Arguments
- predicate
One of: a function
\(v) condof the bound value, a function\() condignoring the bound value (cross-cutting), or a literal value (matched against the bound value viaidentical()).- body
A function
\(v) tag_treeor\() tag_treethat returns the tag tree to render when this case is active. The function is called fresh on each case activation — the active case's reactives and DOM are torn down on transition, so a tag tree captured outside the function would reference dead closures.
