0.0.7 • Published 9 years ago

vdom-form-field v0.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

vdom form field

Easy form fields with virtual-dom.

install

$ npm install vdom-form-field

example

var vdom = require('virtual-dom');
var h = vdom.h;
var FormField = require('vdom-form-field');

var state = FormField({
  field: 'example'
});

var loop = require('main-loop')( state(), FormField.render, vdom );
state(loop.update);
document.getElementById('content').appendChild(loop.target);