Skip to content

Instantly share code, notes, and snippets.

@jasom
Created February 11, 2015 23:07
Show Gist options
  • Save jasom/56230eaa83db92b4488e to your computer and use it in GitHub Desktop.
Save jasom/56230eaa83db92b4488e to your computer and use it in GitHub Desktop.
Bad output from JSX compiler?
foo = <form><Foo baz={(function (x) {
return x;
})} bar={1} /></form>
foo = React.createElement("form", null, React.createElement(Foo, {baz: (function (x) {
return x;
}, )bar: 1}))
@jasom
Copy link
Author

jasom commented Feb 11, 2015

Note the misplaced comma on line 3 of the output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment