https://github.com/nichoth/vdom-components
UI component library for virtual doms
https://github.com/nichoth/vdom-components
Last synced: 3 months ago
JSON representation
UI component library for virtual doms
- Host: GitHub
- URL: https://github.com/nichoth/vdom-components
- Owner: nichoth
- Created: 2015-11-10T18:27:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-24T22:09:58.000Z (over 10 years ago)
- Last Synced: 2025-02-14T18:11:09.347Z (over 1 year ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# vdom components
Collection of UI components bound to `virtual-dom` as a rendering engine.
## install
$ npm install vdom-components
## example
```js
var vdom = require('virtual-dom');
// require something
var FileUpload = require('vdom-components/Form/FileUpload');
var state = FileUpload({});
var loop = require('main-loop')( state(), FileUpload.render, vdom );
state(loop.update);
document.getElementById('content').appendChild(loop.target);
```