UNPKG

browserify-handbook

Version:

how to build modular applications with browserify

12 lines (9 loc) 232 B
var h = require('virtual-hyperscript'); module.exports = A; function A (msg) { if (!(this instanceof A)) return new A(msg); this.msg = msg; } A.prototype.render = function () { return h('div.a', h('h1', this.msg)); };