simple-require-jsx-example
Steps
- npm install
- 'gulp' or 'gulp prod'
- node app.js
- browse to localhost:3000
Notes
'gulp' alone runs the development version, which transforms all JSX files (named [filename].react.js in this example) and places them in the /assets directory
'gulp prod' transforms all files and moves them into the .tmp directory. Then (since the files are now normal JavaScript, no JSX) it the RequireJS optimizer (r.js) runs and compiles and minifies the files and then moves them into /assets directory.