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

Question: jsx running/editing support? #5

Open
brdloush opened this issue Apr 20, 2015 · 2 comments
Open

Question: jsx running/editing support? #5

brdloush opened this issue Apr 20, 2015 · 2 comments
Labels

Comments

@brdloush
Copy link

Hi,

I noticed that you a JSX version in src/main/resources/jsx/commentBox.js, but I can't find any information regarding how it's being used in the spring boot example (if used at all).

I made some local modifications in your original React.java in order to be able load the jsx verison, but it's quite far from being ideal.

What I'm trying to achieve is to have a simple project, in which one could easily modify .jsx files and the changes would be visible without needing to restart the spring boot "appserver".

@winterbe
Copy link
Owner

I've used the JSX command line tools as mentioned here: https://facebook.github.io/react/docs/tooling-integration.html#productionizing-precompiled-jsx

You can simply watch the folder for changes on jsx files: jsx --watch src/ build/

@brdloush
Copy link
Author

brdloush commented May 1, 2015

Nice, you should mention that in your article. While it might be obvious for some, it may not be that obvious for many.

Btw I had to use "--no-cache-dir" jsx flag. Without it my browser didn't see any changes in situations where I made a change, saved, reverted the change, saved again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants