mount

import { mount } from '@hullo/dom'

This function initiates applying Hullos DOMElements onto a DOM tree.

Accepts a DOM Node and then DOMElement; returns a function that will unmount whole tree and unsubscribe any active subscription caused by rendering the application.

const stop = mount(
document.getElementById('app'),
html.div({ props: { textContent: "cowabunga!" } })
);