pub fn when<P>(
cond: impl Fn() -> bool + 'static,
build_arm: impl Fn() -> P + 'static,
) -> AnyPiecewhere
P: Piece,Expand description
Reactive conditional subtree. The anchor is a layout-transparent group; the active arm lives in its own child scope, disposed on switch (§4.3).