Skip to content

choojs/nanomount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Mount a DOM tree on a target node

Resources

License

Stars

Watchers

Forks

Packages

No packages published