Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

vtag

0.1.0 • Public • Published

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

install

npm i vtag

Downloadsweekly downloads

4

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar