Function mount

  • Create a context and attach the JSX elements to the DOM.

    Parameters

    • container: HTMLElement

      The container to append the elements to.

    • Rest ...elements: Element[]

      The elements to attach.

    Returns (() => void)

    A function that can be called to destroy the context and clean up all observers. It will also wipe the content of the container.

      • (): void
      • Returns void