https://github.com/nichoth/vdom-curry
Partially apply an idiomatic mercury component
https://github.com/nichoth/vdom-curry
Last synced: 5 months ago
JSON representation
Partially apply an idiomatic mercury component
- Host: GitHub
- URL: https://github.com/nichoth/vdom-curry
- Owner: nichoth
- Created: 2016-01-12T19:04:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-12T19:05:01.000Z (over 10 years ago)
- Last Synced: 2025-02-15T06:36:53.929Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# vdom curry
Curry a vdom component.
## install
$ npm install vdom-curry
## example
```js
var curry = require('vdom-curry');
var curried = curry(MyComponent, { value: 'example' });
var moreCurry = curry(curried, { valueTwo: 'example two' });
var state = moreCurry();
moreCurry.render(state); // same as MyComponent.render(state)
```