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

CJSX -> JSX #51

Open
chrisvfritz opened this issue Apr 30, 2015 · 2 comments
Open

CJSX -> JSX #51

chrisvfritz opened this issue Apr 30, 2015 · 2 comments

Comments

@chrisvfritz
Copy link

Is it possible to compile CJSX to JSX? The reason is when I'm showing React to non-CoffeeScripters, I'd like to make it easier see for them to see which weird code is CS and which weird code is JSX. 😃

@abejfehr
Copy link

I'm really in favour of this idea, although only for the purpose of documentation generation. All the tools that generate documentation for React components only expect JSX files, but this tool outputs only JS files. Now using JsDoc or something like that is possible, but then you lose the ability to generate documentation from the code as well, not only the comments

@jsdf
Copy link
Owner

jsdf commented Feb 21, 2016

You could try applying the React.createElement->JSX codemod to the compiled
output. See here: https://github.com/reactjs/react-codemod/

On Sun, 21 Feb 2016 at 8:11 PM, Abe Fehr [email protected] wrote:

I'm really in favour of this idea, although only for the purpose of
documentation generation. All the tools that generate documentation for
React components only expect JSX files, but this tool outputs only JS
files. Now using JsDoc or something like that is possible, but then you
lose the ability to generate documentation from the code as well, not only
the comments


Reply to this email directly or view it on GitHub
#51 (comment)
.

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

3 participants