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:
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 DOMElement
interface.Custom renderers can pass in the platform specific types like this: