Created
August 16, 2014 00:24
-
-
Save jxson/e379b6a42f687089ea07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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