0
Challenge · 00Foundations & Setup
Modern JavaScript (ES6+)
Prerequisiteused in ~100% of apps
React is just JavaScript. Every confusing React bug you'll hit is usually a JavaScript misunderstanding wearing a React costume.
Core idea. Before React makes sense, a handful of ES6+ features must be automatic for you: arrow functions, destructuring, spread/rest, the array methods, template literals, optional chaining, async/await, and modules.
poke it, drag it,
try to break it
try to break it
no slides here.
you drive.
you drive.
Playground, this isn't a screenshot
Live demointeractive
[1,2,3,4,5,6].map(…) → [2,4,6,8,10,12]
.map transforms every item (same length). .filter keeps matches (an array). .find returns the first match (one item, or undefined).
↑ play a little first, then dig in