jxson
8/16/2014 - 12:24 AM

mercury-component.js


var mercury = require('mercury');
var h = mercury.h;

module.exports = create;
module.exports.render = render;

function render(state) {
  return h({}, [
    //...
  ])
}

function create(options) {
  var state = mercury.struct({
    //...
  })

  return { state: state }
}