Skip to content

@continuum-js/dom


@continuum-js/dom / Dynamic

Function: Dynamic()

Dynamic<T>(props): Node

Defined in: index.tsx:1043

Switch the subtree on a behavior's value (rebuilds on every change).

tsx
<Dynamic value={route}>{(r) => r === "home" ? <Home /> : <About />}</Dynamic>

Type Parameters

T

T

Parameters

props

children

(value) => Child

value

State<T>

Returns

Node