Skip to content
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

JSX parse error #986

Closed
petehunt opened this issue Jan 29, 2014 · 1 comment
Closed

JSX parse error #986

petehunt opened this issue Jan 29, 2014 · 1 comment

Comments

@petehunt
Copy link
Contributor

Just saw this:

/** @jsx React.DOM */
var HelloMessage = React.createClass({
  render: function() {
    return <div>hello<br />452k</div>;
  }
});

React.renderComponent(<HelloMessage name="John" />, mountNode);

causes a parse error. Removing the k in 452k fixes it.

@sophiebits
Copy link
Contributor

Fixed by facebookarchive/esprima#8. I'm waiting for a transform sync and then we can bump the esprima version and bring it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants