Skip to content

children

Returns a memo which is a list of all the provided children. If you want this as an array, see childrenArray.

import { children } from "@alloy-js/core";
function children(fn: () => Children, options?: ChildrenOptions): () => Children;
fn

() => Children

optionsoptional

ChildrenOptions

preserveFragmentsoptionalboolean

When true, fragments and arrays are not flattened.

() => Children