Lilact
    Preparing search index...

    Function createComponent

    • Creates an HTML/React-like component instance. This is what the JSX transpiler uses internally for <Component>...</Component>-style expressions. It is also aliased to createElement for compatibility with the React API.

      Parameters

      • entity: string

        The HTML tag/type to create (e.g., 'div', 'span', 'button').

      • Optionalprops: Object = {}

        Props/attributes to apply to the created element.

      • ...children: any[]

        Child nodes or values to attach (e.g., strings, HTMLElements, component instances, or arrays).

      Returns HTMLComponent

      The created component instance.