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

Button beside editor to switch between JSX and JS #552

Closed
chenglou opened this issue Nov 15, 2013 · 4 comments
Closed

Button beside editor to switch between JSX and JS #552

chenglou opened this issue Nov 15, 2013 · 4 comments
Assignees

Comments

@chenglou
Copy link
Contributor

I think it's a neat way of solving https://twitter.com/atomless/status/401288699029094401
Instead of deciding if a snippet should be written in JS or JSX, why not put the JSX compiler to bigger use. There could be a button beside the live editor label that toggles between the two.

This applies not only to Tips but also in general.

@vjeux
Copy link
Contributor

vjeux commented Nov 15, 2013

Good idea! Where is the pull request? :)

@chenglou
Copy link
Contributor Author

lol I might get on it (or someone else) if it's viable. Compile JSX to JS is not a problem of course, but what about the other way around? If I write in the JS view and go back to the JSX tab what'd be the correct behaviour here?

@forresto
Copy link

👍

@chenglou
Copy link
Contributor Author

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

4 participants