gulp-react
Precompile Facebook React JSX templates into JavaScript
Issues with the output should be reported on the React issue tracker.
$ npm install --save-dev gulp-react
var gulp = require('gulp');
var react = require('gulp-react');
gulp.task('default', function () {
return gulp.src('template.jsx')
.pipe(react())
.pipe(gulp.dest('dist'));
});
The JSX directive /** @jsx React.DOM */
is automagically prepended to .jsx
files if missing.
Type: boolean
Default: false
Enable harmony features for JSX.