Skip to content

Instantly share code, notes, and snippets.

@pragmaticlogic
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save pragmaticlogic/92f3f14467727a805c8e to your computer and use it in GitHub Desktop.

Select an option

Save pragmaticlogic/92f3f14467727a805c8e to your computer and use it in GitHub Desktop.
skeleton
var Main = React.createClass({
render() {
// nothing above here
// anonymous function is immediately invoked
return ((context, props, state) => {
//quarantine impure code
//....
//....
//pure code
//....
//....
})(this, this.props, this.state)
//nothing below here
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment