JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q52397F
  • License ISC

Easy form fields

Package Exports

  • vdom-form-field

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vdom-form-field) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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