Frontend learning path

JavaScript for React

Exactly the JavaScript you need before starting React — nothing more, nothing less. Seven phases, ordered by what React actually asks of you, each with a ready-to-use learning prompt.

7Phases
~3 moTimeline
0%Your progress
Variables & data types must
var / let / conststringnumberbooleannull & undefinedtypeof
Operators must
arithmetic + - * / %comparison == === !== >logical && || !ternary ? :
Conditionals & loops must
if / else if / elseswitchfor loopwhilebreak & continue
Function types must
function declarationfunction expressionarrow functions =>parameters & argumentsreturn values
Advanced function concepts used in React
default parametersrest parameters (...args)callback functionshigher-order functions
Scope must
global scopelocal/function scopeblock scopeclosure (basic idea)
Arrays must
create & accesspush / pop / shiftindexOf / includesslice / splice
Array methods — React uses these daily used in React
.map().filter().find().forEach().reduce().some().every()
Objects must
create objectdot & bracket notationadd / update / delete keysnested objectsObject.keys() / values()
Destructuring used in React
array destructuringobject destructuringrename while destructuringdefault values
Spread & Rest operator used in React
spread arrays [...arr]spread objects {...obj}rest in functionsmerging arrays & objects
Template literals must
backtick strings${variable} inside stringmulti-line strings
Short-circuit & optional chaining used in React
&& (render if true)|| (fallback value)?? nullish coalescing?. optional chaining
Modules used in React
export defaultnamed exportimport from
⚠️ Why only basics here?
React handles the DOM for you. You don't need deep DOM skills. Just understand what it is so React makes sense. Don't spend weeks here.
Selecting elements must
getElementByIdquerySelectorquerySelectorAll
Changing elements
innerHTML / textContentstyle changesclassList.add/remove
Events must
addEventListenerclick / input / submitevent object (e)e.preventDefault()
How async works must
synchronous vs asynchronouscall stack conceptwhat is a callback
Promises must
new Promise().then().catch()Promise.all()
Async / Await used in React
async functionawait keywordtry / catch / finally
Fetch API used in React
fetch(url)GET requestPOST request.json() parsinghandling errors
Build these 3 projects before React 🚀
To-do list (arrays + DOM)Weather app (fetch + async/await)Quiz app (objects + events + logic)
✅ After these 3 projects — you're React-ready!
No more JS theory neededLearn remaining JS inside React itself