spring-react-example icon indicating copy to clipboard operation
spring-react-example copied to clipboard

Question: jsx running/editing support?

Open brdloush opened this issue 10 years ago • 2 comments

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".

brdloush avatar Apr 20 '15 15:04 brdloush

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/

winterbe avatar Apr 28 '15 09:04 winterbe

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.

brdloush avatar May 01 '15 10:05 brdloush