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
Section titled “Parameters”| fn | () => Children | |
| options | optional ChildrenOptions |
Options
Section titled “Options”| preserveFragments | optional boolean | When true, fragments and arrays are not flattened. |
Returns
Section titled “Returns”() => Children