Lilact
    Preparing search index...

    Function createRoot

    • Creates a root controller bound to a specific DOM element. The returned object manages mounting/updating and removal of component trees.

      Parameters

      • element: string | HTMLElement

        Root HTML element to use. If a string is provided, it is resolved via document.querySelector.

      Returns Object

      Root controller.