Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function render(
renderer: DOMRenderer,
mountNode: DOMNode
): void {
// legacy support for single stylesheets
// will be removed soon
if (mountNode) {
if (!warnDeprecated) {
// TODO: warn
warnDeprecated = true
}
renderToElement(renderer, mountNode)
} else {
initStyleNodes(renderer)
const updateInterface = createDOMInterface(renderer)
renderer.subscribe(updateInterface)
}
}