We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue copied from React:Issues.
I am experiencing a problem with the HTMLtoJSX converter (https://www.npmjs.com/package/htmltojsx), the same converter as officially displayed on https://facebook.github.io/react/html-jsx.html.
The HTML-code <div>{</div> is compiled to the following JSX-code:
<div>{</div>
https://facebook.github.io/react/html-jsx.html
The JSX code fails with the following error:
Uncaught SyntaxError: embedded: Unexpected token (7:18) 5 | var Hello = React.createClass({ 6 | render: function() { > 7 | return <div>{</div>; | ^ 8 | } 9 | });
Test: https://jsfiddle.net/69z2wepo/28714/
Does anyone know a solution for the problem?
Reply from @Daniel15 Good catch, thanks for reporting this! As @zpao mentioned, please file this in the react-magic repo so I remember to fix it :)
The text was updated successfully, but these errors were encountered:
I have put in a pull request with my fix.
Sorry, something went wrong.
Should be fixed by #55
No branches or pull requests
I am experiencing a problem with the HTMLtoJSX converter (https://www.npmjs.com/package/htmltojsx), the same converter as officially displayed on https://facebook.github.io/react/html-jsx.html.
The HTML-code
<div>{</div>
is compiled to the following JSX-code:https://facebook.github.io/react/html-jsx.html
The JSX code fails with the following error:
Test: https://jsfiddle.net/69z2wepo/28714/
Does anyone know a solution for the problem?
The text was updated successfully, but these errors were encountered: