JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1186
  • Score
    100M100P100Q12175F
  • License MIT

Precompile Facebook React JSX templates into JavaScript

Package Exports

  • gulp-react

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-react Build Status

Precompile Facebook React JSX templates into JavaScript

Issues with the output should be reported on the React issue tracker.

Install

npm install --save-dev gulp-react

Example

var gulp = require('gulp');
var react = require('gulp-react');

gulp.task('default', function () {
    gulp.src('template.jsx')
        .pipe(react())
        .pipe(gulp.dest('dist'));
});

The JSX directive /** @jsx React.DOM */ is automagically prepended to .jsx files if missing.

License

MIT © Sindre Sorhus