React TutorialLesson 7Free preview
React ES6
This lesson is part of React · All levels
Summary
React makes great use of the modern JavaScript features of the ECMAScript 2015 or ES6 standards. Features such as const and let, arrow function, template literal, destructuring, and import/export modules became commonplace when writing React code. Understanding ES6 makes the React code pattern feel much more natural.
Key points
- Const and let replaced var with a clearer coverage
- Arrow function writes a concise function and maintains this
- The template literal makes it easy to mix text with expressions
- Import/export module separates the code into files
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.