UNPKG

hyperd

Version:

Virtual DOM based, template engine agnostic, a lightweight view library

12 lines (8 loc) 246 B
var Component = require('./lib/component'); exports = module.exports = hyperd; exports.Component = Component; function hyperd(node, render) { var component = new Component(); component.render = render; return component.attachTo(node); }