Skip to content

Question: jsx running/editing support? #5

Open

Description

@brdloush

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

Activity

  1. winterbe commented on Apr 28, 2015

    @winterbe
    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/

  2. brdloush commented on May 1, 2015

    @brdloush
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions