Skip to content

Instantly share code, notes, and snippets.

@Kamilnaja
Last active May 21, 2017 10:39
Show Gist options
  • Save Kamilnaja/bef3c1d916cea8c9ca515dda4ac584fa to your computer and use it in GitHub Desktop.
Save Kamilnaja/bef3c1d916cea8c9ca515dda4ac584fa to your computer and use it in GitHub Desktop.
var Component = createReactClass({
render: function () {
return React.DOM.span(null, "I'm so custom");
}
});
ReactDOM.render(
React.createElement(Component),
document.getElementById("app")
)
<script src="node_modules/create-react-class/create-react-class.js"></script>
<script>
var MyComponent = createReactClass({
render: function () {
return React.DOM.span(null, "i'm so awesome")
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment