Skip to content

@continuum-js/dom


@continuum-js/dom / when

Function: when()

when(cond, thenRender, elseRender?): Node

Defined in: index.tsx:895

Conditional region driven by a boolean behavior (no rebuild on same value).

Parameters

cond

State<boolean>

thenRender

() => Child

elseRender?

() => Child

Returns

Node