React Virtual DOM and Reconciliation Explained
Learn how React's Virtual DOM and reconciliation work. Understand render, diffing, and commit, and why React only updates the DOM nodes that actually changed.
Build modern UIs with React
Learn how React's Virtual DOM and reconciliation work. Understand render, diffing, and commit, and why React only updates the DOM nodes that actually changed.
Build your first React component, a counter, from scratch. Learn how useState and onClick work together to keep the screen in sync with a number.
TypeScript adds a type system to React. Learn how to create a typed React project and type props, state, and event handlers.
JSX is the syntax extension React uses to describe UI inside JavaScript. Learn its core rules and see how JSX elements become what you see on screen.
React components decide what to show with plain JavaScript. See six conditional rendering patterns, from if statements to ternaries, and when to use each.
Turn an array into a row of elements with the map method. Learn why every list item needs a stable key and when the index is not safe to use.
Fragments group JSX elements without adding a wrapper to the DOM. Learn when to use the empty tag and when you need the full Fragment import.
A React component can only return one value, because JSX compiles to JavaScript objects. Learn why, and how fragments lift the limit.
JSX errors are terse but consistent. Learn what unexpected token and invalid children mean, plus the fixes for the most common JSX syntax mistakes.
useEffect synchronizes a React component with systems outside React, like timers, network requests, or the browser DOM. Learn when to use it and when to skip it.
Use useRef to reach a DOM node, then read its size and position with getBoundingClientRect or track changes with ResizeObserver.
Understand why custom Hooks share behavior, not values, and how each call to the same Hook keeps its own independent state.