gulp-render-react 
Render React components to string or static markup
Will render React component with React.renderToString or React.renderToStaticMarkup
$ npm install --save-dev gulp-render-reactvar gulp = require('gulp');
var render = require('gulp-render-react');
var SRC = 'src/*.jsx';
var DEST = 'dist';
gulp.task('default', function () {
return gulp.src(SRC, { read: false })
.pipe(render('string', {
some: 'default'
props: 'to',
pass: 'on'
}))
.pipe(gulp.dest(DEST));
});typeisstringfor React.renderToString()markupfor React.renderToStaticMarkup()
propsare the properties to create the component with
MIT © Andrew Shapro