-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
Can JSX compile to a string instead of an object instantiation? #2335
Comments
I don't think JSX can do this out of the box. Perhaps some macro with sweet.js? See: http://jlongster.com/Compiling-JSX-with-Sweet.js-using-Readtables |
React JSX(Transformer) probably never will, but other JSX implementations certainly can. |
We're not going to do this. You are free to write your own transform if you'd like. |
@syranide Nice. I think sweet.js plus https://github.com/mxw/vim-jsx will do the job. :D |
For example, can I opt for
to convert to
instead of
?
The text was updated successfully, but these errors were encountered: