Skip to content

Instantly share code, notes, and snippets.

@benkeen
Last active August 29, 2015 14:20
Show Gist options
  • Save benkeen/bd99ae3c6ee0e1bb0dd5 to your computer and use it in GitHub Desktop.
Save benkeen/bd99ae3c6ee0e1bb0dd5 to your computer and use it in GitHub Desktop.
var Parent = FauxtonAPI.createReactClass('Parent', {
render: function () {
var Child = FauxtonAPI.getReactClass('child');
return (
<div>
<Child />
</div>
);
}
});
var Child = FauxtonAPI.createReactClass('Child', {
render: function () {
return (
<p>Child</p>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment