vdom-curry

Partially apply an idiomatic mercury component

Usage no npm install needed!

<script type="module">
  import vdomCurry from 'https://cdn.skypack.dev/vdom-curry';
</script>

README

vdom curry

Curry a vdom component.

install

$ npm install vdom-curry

example

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)