nanomount
1.0.1 • Public • Published nanomount
Mount a DOM tree on a target node.
Usage
var nanomount = require('nanomount')
var html = require('bel')
var tree = html`
<body>
<h1>hello planet</h1>
</body>
`
nanomount(document.body, tree)
API
nanomount(targetNode, newNode)
Mount a DOM tree on target node.
License
MIT
Package Sidebar
Install
Weekly Downloads