-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple tags in the same line results in 'unexpected identifier' error #53
Comments
You can't return two tags from render. Your second example returns only the second tag. |
@spicyj I gave a wrong example, what I mean was - this results in an error:
|
You've got some malformed tags there... your code should be: ...
render: ->
<div>
<span>foo</span><span>bar</span>
</div> Or was the |
That rogue render: ->
<div className="comments" id="comments" name="comments">
<h3 className="h3-text">
Add your comments
<span className="faded">
— <i className="fa fa-comment"></i> <span className="comment-list__title__counter">{this.state.totalCommentsCount}</span>
</span>
</h3> The error is <span className="faded">
— <i className="fa fa-comment"></i>
<span className="comment-list__title__counter">{this.state.totalCommentsCount}</span>
</span> Thanks |
Okay thanks, this gives me a enough information to say this is a genuine issue and I'll move forward with some changes I've been considering which should eliminate this class of white space related issues. |
This code produces the aforementioned error:
while this works:
Is this expected? Thanks.
The text was updated successfully, but these errors were encountered: