javascript - JSX not creating files -


i have file src/post.jsx following content

var react = require('react');  var post = react.createclass({      render: function() {         return (             <h1>i t!!!</h1>         );     }  });  module.exports = post; react.render(   <post />,   document.getelementbyid('post') ); 

when run

jsx --watch src/  build/\ 

only build directory gets created no post.js file.

do have run other command first?

jsx seems consider *.js files by default:

-x, --extension <js | coffee | ...>      file extension assume when resolving module identifiers (default: js) 

so, add -x jsx.


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -