Created
September 25, 2014 10:25
-
-
Save cjohansen/2d4f2adca06003711c86 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
function createComponent(def) { | |
return React.createComponent({ | |
render: function () { | |
return def.render(this.props); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment