JSX Jet Tool compiles non-generating JS script

I am trying to convert a React.js script using JSX syntax into a script into simple js syntax. I used a response tool like in http://facebook.imtqy.com/react/docs/tooling-integration.html#jsx

But the output file simply does not work: there is no error in the browser console, nothing

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

And you can see that it works perfectly: http://www.youni.education/universities/University_of_Warwick

+1
source share
1 answer

Two things:

  • If your file extension is jsx, use --extension jsx
  • I read that the jsx tool fails if you give it the wrong src and dest dirs
+1
source

Source: https://habr.com/ru/post/1214986/


All Articles