Description
It seems to me that in the Italian version, there is an error in the definition of the gulpfile.js file.
The line:
var babelify = Require ('react')
it should be me i think:
var reatify = request ('react')
I apologize, but babelfy when it comes into action and for what purpose?
I, too, June 2020 when I launch gulp and observe the known rendering that does not add (for example) data-reagid = ". 0" to my HTML elements. Why this?
Below the code reported in the book.
var gulp = require('gulp');
var browserify = require('browserify');
var babelify = require('reactify');
var source = require('vinyl-source-stream');
gulp.task('default', function () {
return browserify('./source/app.js')
.transform(reactify)
.bundle()
.pipe(source('snapterest.js'))
.pipe(gulp.dest('./build/'));
});
Thank you so much
Activity