node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

vtag

vtag

Virtual tags for virtual-dom.

Dependency Status Build Status npm version

Installation

npm install --save vtag

Usage

var h = require('virtual-dom/h');
var vtag = require('vtag')(h);
 
var vtree = h('html', [
  h('head', [
    vtag.css('/foo.css') // creates <link rel="stylesheet" href="/foo.css"> 
  ]),
  h('body', [
    vtag.js('/bar.js') // creates <script src="/bar.js"></script> 
  ])
]);

License

MIT