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

Is there a “Try Coffee-React” page like on coffeescript.org? #14

Open
alanhogan opened this issue Jul 9, 2014 · 8 comments
Open

Comments

@alanhogan
Copy link
Contributor

One of the trickiest things about writing CoffeeScript is that sometimes its syntax doesn’t compile into exactly the JS one thought it might. For this reason, the coffeescript.org “Try CoffeeScript” widget is invaluable.

I would want to be able to use the same sort of tool, one that enables paste-and-check, with whatever .cjsx I write. Is there such a page or tool already?

@jsdf
Copy link
Owner

jsdf commented Jul 10, 2014

Good Idea... Doesn't exist as yet but it should.

@jsdf
Copy link
Owner

jsdf commented Jul 12, 2014

@jsdf jsdf closed this as completed Jul 18, 2014
@alanhogan
Copy link
Contributor Author

@jsdf That’s awesome, thanks. (Just got back from vacation recently)

I may have misunderstood coffee-react-transform. I guess I got it confused with coffee-react, which is a "drop-in replacement for the coffee executable”. I was expecting the transform demo to compile all the way to JavaScript.

To be clear, this demo tool is still very helpful.

What’s still missing is the ability for someone who is writing CJSX and wonders exactly what the equivalent JS is, to paste an arbitrary chunk of their code (possibly just CoffeeScript, possibly — and problematically — CoffeeScript with JSX syntax) into a converter to see what the browser will see.

Do you see what the problem is? No one preview tool handles all the conversions right now.

@jsdf
Copy link
Owner

jsdf commented Jul 23, 2014

Yep, I plan to add a tab with js output also, there is just currently a bug in coffee react which only occurs in the browser which I need to fix first

@jsdf jsdf reopened this Jul 23, 2014
@alanhogan
Copy link
Contributor Author

awesomesauce
happy reaction

@alanhogan
Copy link
Contributor Author

Oh — I created a Fluid app for your tool (on my computer) and created this icon for it. It’s nothing special, but if you want to add it to your page as a favicon or other sort of icon, feel free.
cjsx

Source zip here (in Acorn format)

@jsdf
Copy link
Owner

jsdf commented Jul 24, 2014

Neat, thanks for that!

@DylanPiercey
Copy link

Can we get this "http://jsdf.github.io/coffee-react-transform/" added to the README? It's very useful.

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