Created
February 11, 2015 23:07
-
-
Save jasom/56230eaa83db92b4488e to your computer and use it in GitHub Desktop.
Bad output from JSX compiler?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo = <form><Foo baz={(function (x) { | |
return x; | |
})} bar={1} /></form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo = React.createElement("form", null, React.createElement(Foo, {baz: (function (x) { | |
return x; | |
}, )bar: 1})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note the misplaced comma on line 3 of the output