MotionScript

@motion-script/core


@motion-script/core / NodeChildren

Type Alias: NodeChildren

NodeChildren = Node | false | null | undefined | NodeChildren[]

Defined in: nodes/base/node.ts:146

A JSX/children child: a single Node, an arbitrarily-nested array of children, or a falsy value. Nesting is allowed so .map() results can be dropped straight in as a child, and falsy values are allowed so {condition && <Node/>} works like in React — the Node constructor flattens (.flat(Infinity)) and filters out everything but Node instances.