An open API service indexing awesome lists of open source software.

https://github.com/nichoth/vdom-form-field

Easy form fields
https://github.com/nichoth/vdom-form-field

Last synced: about 2 months ago
JSON representation

Easy form fields

Awesome Lists containing this project

README

          

# vdom form field

Easy form fields with `virtual-dom`.

## install

$ npm install vdom-form-field

## example

```js
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);
```