Skip to content

Instantly share code, notes, and snippets.

@LBRapid
Created April 21, 2014 17:03
Show Gist options
  • Select an option

  • Save LBRapid/11148933 to your computer and use it in GitHub Desktop.

Select an option

Save LBRapid/11148933 to your computer and use it in GitHub Desktop.
React component without JSX
var CommentBox = React.createClass({
render: function() {
return (
React.DOM.div({
className: 'commentBox',
children: 'Hello, world! I am a CommentBox.'
})
);
}
});
React.renderComponent(
CommentBox({}),
document.getElementById('content')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment