Without the comment, the following compiles and renders fine:
x.IndexView = React.createClass
displayName: "views.user.IndexView"
render: () ->
return (
<div className="user-indexview">
<h1>Say Hello to React.js</h1>
<R.Collection collectionClass={App.models.user.Users} fetch={true}>
{# this is a comment }
<div className="test">
<R.CollectionStats/>
</div>
</R.Collection>
</div>
)
With the comment, I get a "SyntaxError: Unexpected end of input: unclosed CJSX_ESC"
I've also seen this error show up on the outermost component if one of the inner components has an unmatched tag.