Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.