Hullo JS
Github
Chat
Searchβ¦
Hullo JS
Hullo π
Hullo π core
Intro to Core
API
Hullo π browser
Intro to Browser
API
Hullo π DOM
Intro to DOM
Guide
API
html.*
svg.*
mount
Hullo π Node
Intro to Node
API
Powered By
GitBook
mount
import { mount } from '@hullo/dom'
This function initiates applying Hullos
DOMElement
s 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!
β
Previous
svg.*
Next - Hullo π Node
Intro to Node
Last modified
3yr ago
Copy link