jsdf / coffee-react-transform

DEPRECATED – Provides React JSX support for Coffeescript
MIT License
432 stars 58 forks source link

CJSX -> JSX #51

Open chrisvfritz opened 9 years ago

chrisvfritz commented 9 years ago

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. :smiley:

abejfehr commented 8 years ago

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 commented 8 years ago

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 notifications@github.com 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 https://github.com/jsdf/coffee-react-transform/issues/51#issuecomment-186778515 .