Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 808 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 808 Bytes

#Course about react tech


#In this lesson: Extra Feautures --> Boiler Plate.


Description

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);