-
Notifications
You must be signed in to change notification settings - Fork 0
ES6
Ben Casalino edited this page May 23, 2018
·
1 revision
ES6+/TypeScript Define these: Arrow functions Object destructuring Classes The spread operator
Babel Babel is a JavaScript transpiler that converts edge JavaScript into plain old ES5 JavaScript that can run in any browser (even the old ones). It makes available all the syntactic sugar that was added to JavaScript with the new ES6 specification, including classes, fat arrows and multiline strings.
Labeled Statement:
Spread Operator: https://davidwalsh.name/spread-operator Example: These two below are equivalent: function App1() { return ; }
function App2() { const props = {firstName: 'Ben', lastName: 'Hector'}; return <Greeting {...props} />; }