pub fn when<P: Piece>(
cond: impl Fn() -> bool + 'static,
build_arm: impl Fn() -> P + 'static,
) -> AnyPieceExpand 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).