nanomount
Mount a DOM tree on a target node
Last updated 4 years ago by yoshuawuyts .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nanomount 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

2 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2017 © taobao.org |