heron2014 / react-todo

0 stars 0 forks source link

babel #7

Open heron2014 opened 8 years ago

heron2014 commented 8 years ago

Babel is going to allow us to transform our JSX into actual JavaScript. What's nice about Babel though is it can be used for much more than just JSX -> JS transformations. You can also opt into "future" versions of JavaScript (ES2015, 2016, etc) and use Babel to transform your future JavaScript to modern day JavaScript so the browser can understand it

npm install --save-dev babel-core babel-loader babel-preset-react Give Webpack the single babel-loader then that loader will look to a .babelrc file.