For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/react/Types/ReactLynxChildren.md.
  • English
  • Type Alias: ReactLynxChildren

    ReactLynxChildren = Omit<typeof PreactChildren, "map" | "forEach" | "toArray"> & object

    Type of ReactLynx children utilities.

    Type Declaration

    forEach()

    forEach<T extends ComponentChild, R>(children: T | T[], fn: (child: T, index: number) => R): readonly R[] | null

    Type Parameters

    Type Parameter
    T extends ComponentChild
    R

    Parameters

    ParameterType
    childrenT | T[]
    fn(child: T, index: number) => R

    Returns

    readonly R[] | null

    map()

    map<T extends ComponentChild, R>(children: T | T[], fn: (child: T, index: number) => R): readonly R[] | null

    Type Parameters

    Type Parameter
    T extends ComponentChild
    R

    Parameters

    ParameterType
    childrenT | T[]
    fn(child: T, index: number) => R

    Returns

    readonly R[] | null

    toArray()

    toArray(children: ComponentChildren): readonly VNode<{ }>[]

    Parameters

    ParameterType
    childrenComponentChildren

    Returns

    readonly VNode<{ }>[]

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.