Hugo
Hugo

Reputation: 1304

react-tool's JSX compile a not generating JS script

I am trying to convert a React.js script using the JSX syntax into a script in plain js syntax I used react-tool like recommanded in http://facebook.github.io/react/docs/tooling-integration.html#jsx

But the output file simply doesnt work : no error in the browser console, nothing

The script (with the JSX syntax) can be found at : http://www.youni.education/javascripts/postslist.js

And you can see it working just fine at: http://www.youni.education/universities/University_of_Warwick

Upvotes: 1

Views: 1065

Answers (1)

Alexander Suraphel
Alexander Suraphel

Reputation: 10613

Two things:

  1. If the extension of your file is jsx use --extension jsx
  2. I've read that the jsx tool fails silently if you give it the wrong src and dest dirs

Upvotes: 1

Related Questions