Hullo JS
Search…
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.
1
const stop = mount(
2
document.getElementById('app'),
3
html.div({ props: { textContent: "cowabunga!" } })
4
);
Copied!
​
Last modified 2yr ago
Copy link