#Course about react tech
#In this lesson: Extra Feautures --> Boiler Plate.
In this application scratch , we have added new javascript features with Babel.
To install this plugin we need to execute in out console:
npm install --save-dev babel-preset-stage-0
After install, the way to include in our webpack file config is the following one:
presets: ['react', 'es2015', 'stage-0']
and we can test it like this example: app.jsx
var obj1 = {
name: 'Manuel',
location: 'Gijon'
};
var obj2 = {
age:33,
...obj1 // this is fucking awesome
};
console.log(obj2);