Mount reactive template to DOM element. Signal reads inside templateFn automatically trigger DOM updates.

  • Parameters

    • templateFn: (() => string)

      Function returning HTML string

        • (): string
        • Returns string

    • target: any

      CSS selector or DOM element

    Returns Object

    Mount instance with unmount() method