Skip to content

Instantly share code, notes, and snippets.

@jxson
Created August 16, 2014 00:24
Show Gist options
  • Save jxson/e379b6a42f687089ea07 to your computer and use it in GitHub Desktop.
Save jxson/e379b6a42f687089ea07 to your computer and use it in GitHub Desktop.
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 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment