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
Post a Comment