• The createRenderer function accepts two generic arguments: HostNode and HostElement, corresponding to Node and Element types in the host environment. For example, for runtime-dom, HostNode would be the DOM Node interface and HostElement would be the DOM Element interface.

    Custom renderers can pass in the platform specific types like this:

    const { render, createApp } = createRenderer<Node, Element>({
    patchProp,
    ...nodeOps
    })

    Type Parameters

    Parameters

    Returns vue.Renderer<HostElement>