nanomount

Mount a DOM tree on a target node

2 个版本
安装
npm install nanomount
yarn add nanomount
pnpm add nanomount
bun add nanomount
README

nanomount stability

npm version build status test coverage downloads js-standard-style

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

版本列表
1.0.1 2017-03-14
1.0.0 2017-03-04