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;

Parameters

fn

() => Children

optionsoptional

ChildrenOptions

Options

preserveFragmentsoptionalboolean

When true, fragments and arrays are not flattened.

Returns

() => Children