Elegant React with ES6 (and a bit of ES7)
summary
Shows concrete ES6/ES7 moves: swap vars for let and const to avoid hoisting bugs, convert require/exports to ES6 modules with hoisted imports and working circular deps, replace React.createClass with ES6 classes plus static prop types, use arrow functions for auto-binding and no arguments, apply destructuring and spread/rest to cut updateState to three lines, use decorators as shorthand for higher‑order components, and run everything today with Babel stage zero (ego boost 5000 example included).
AI-written summary · about
chapters (6)
- 0:00Start
- 7:14MODULES
- 15:29DESTRUCTURING
- 17:15SPREAD & REST
- 19:49ARROW FUNCTION
- 22:36Class level syntactic sugar for higher-order functions
related talks
54mJavaScript Essentials for Programming with React
52mES2015: Using tomorrow's JavaScript today!
36mReact + ES.next = ♥
44mJavaScript in 2017: You might (not) need a framework
27mUnderstanding JavaScript Libraries via React and the React Ecosystem
38mReact Native + ES.next = ♥︎
01h 09mBabel: A refactoring tool
01h 04mWhat makes React different?
