-
Notifications
You must be signed in to change notification settings - Fork 47.7k
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
Comments
Good idea! Where is the pull request? :) |
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? |
👍 |
In! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: