Thinking in react projct
文章目录
React 项目的思考
JavaSript compiler Babel
es6 arrow function
Arrows are a function shorthand using the => syntax. They are syntactically similar to the related feature in C#, Java 8 and CoffeeScript. They support both expression and statement bodies. Unlike functions, arrows share the same lexical this as their surrounding code. If an arrow is inside another function, it shares the “arguments” variable of its parent function.
- arrows
- classes
- enhanced object literals
- template strings
- destructuring
- default + rest + spread
- let + const
- iterators + for..of
- generators
- unicode
- modules
- module loaders
- map + set + weakmap + weakset
- proxies
- symbols
- subclassable built-ins
- promises
- math + number + string + array + object APIs
- binary and octal literals
- reflect api
- tail calls
See the ES2015 standard for full specification of the ECMAScript 2015 language.
http://kangax.github.io/compat-table/es6/
module bundler Webpack
- Entry
- Output
- Loaders
- Plugins
optimizations
- code-split
UI library
React
blog https://reactjs.org/blog/all.html