How to write this without using JSX?
var CommentBox = React.createClass({ render: function() { return ( <div className="commentBox"> <h1>Comments</h1> <CommentList /> <CommentForm /> </div> ); } }); This comes from the react.js tutorial: http://facebook.github.io/react/docs/tutorial.html
I know I can do the following:
return ( React.createElement('div', { className: "commentBox" }, React.createElement('h1', {}, "Comments") ) But this only adds one element. How can I add more next to one another.