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/CreateElement.md.
  • English
  • Interface: CreateElement()

    The call signature of ReactLynx createElement.

    Call Signature

    CreateElement<Type extends keyof IntrinsicElements>(type: Type, props?: IntrinsicElements[Type] | null, ...children: ReactNode[]): ReactElement<IntrinsicElements[Type], Type>

    Creates an element for a Lynx intrinsic element.

    Type Parameters

    Type Parameter
    Type extends keyof IntrinsicElements

    Parameters

    ParameterType
    typeType
    props?IntrinsicElements[Type] | null
    ...children?ReactNode[]

    Returns

    ReactElement<IntrinsicElements[Type], Type>

    Call Signature

    CreateElement<Props extends object>(type: string | ComponentType<Props>, props?: Attributes & Props | null, ...children: ReactNode[]): ReactElement<Props>

    Creates an element for a component.

    Type Parameters

    Type Parameter
    Props extends object

    Parameters

    ParameterType
    typestring | ComponentType<Props>
    props?Attributes & Props | null
    ...children?ReactNode[]

    Returns

    ReactElement<Props>

    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.