Before learning React you should be comfortable with core JavaScript: variables with let and const, functions and arrow functions, arrays and objects, destructuring, the spread operator, template literals, ES modules and array methods such as map and filter. You do not need to be an expert, but these features appear in almost every React component, so unfamiliarity with them makes React feel harder than it is.
You also need basic HTML and CSS, and a rough idea of how the browser DOM works. This guide lists what to know, with the React code where each feature shows up.
Modern React code uses const by default and let when a value must be reassigned. You should avoid var.
React state is never changed by reassigning a variable and expecting the screen to update. Understanding that const forbids reassignment, but not changes inside an object, helps you see why React asks you to create new objects instead of editing old ones.
A React component is a function. Event handlers and callbacks are usually arrow functions.
You should know default parameters, returning values, and that functions can be passed as arguments and stored in variables. In React you pass functions as props, for example onClick={() => save()}.
Backtick strings let you embed values, which mirrors how JSX embeds expressions in curly braces.
Know the difference between an expression (produces a value, such as a + b or cond ? x : y) and a statement (such as if or for). JSX curly braces accept only expressions, which is why React code uses ternaries and && instead of if inside markup.
Components receive an object of props, and hooks return arrays. Destructuring pulls values out concisely.
The same pattern appears everywhere in React:
The spread operator copies objects and arrays. React state must be replaced rather than mutated, so you will use it constantly.
todo is unchanged, and finished is a new object. This is a shallow copy: nested objects are still shared, which matters when you update nested state later.
React renders lists by transforming arrays into elements, so map is essential. filter removes items and reduce collapses values.
Know that these methods return new arrays and do not change the original. Methods such as push, splice and sort mutate the array, so avoid them on state; use toSorted or copy first.
Every React file imports what it needs and exports what others use.
Know the difference between a default export (one per file, imported without braces) and named exports (imported with braces).
user?.address?.city ?? "Unknown".async / await for loading data with fetch.0, "", null and undefined behave differently in conditional rendering.No. Learn React with JavaScript first, then add TypeScript when you are comfortable. Most real projects use TypeScript later.
Not for modern React. Function components and hooks are the standard, so classes are only needed to read older code.
There is no fixed time. If you can build a small to-do list with plain JavaScript using arrays, objects, functions and DOM events, you are ready.
You need it as a tool to run the development server and install packages, but you do not need to write Node code.
Know variables, functions, arrow functions, template literals, destructuring, spread, array methods and ES modules before starting React. Add async code, closures and optional chaining as you go. A short checklist: if you can transform an array with map, copy an object with spread and split code into modules, you are ready for components and state.