hyperscript-cellx

0.0.4 • Public • Published

hyperscript-cellx

Cellx adapter for hyperscript observable

Example

var cellx = require('cellx');
var h = require('hyperscript');
var o = require('hyperscript-cellx');

var color = cellx('green');
var div = h('div', {
    style: {
        color: o(color)
    }
}, [h('button', {
    onclick: function () {
        color('red');
    }
}, "click me!"), "Lorem Ipsum"]);
document.body.appendChild(div);

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i hyperscript-cellx

    Weekly Downloads

    5

    Version

    0.0.4

    License

    ISC

    Last publish

    Collaborators

    • arvitaly