Study guide

Curriculum

Follow the 5 stages in order. Part 17 is the Stage 5 specialization: pick one track.

Start learning

Stage 1 Stage 1: Foundation

JSX, components, props and composition, state and events, rendering lists and conditionals, and forms — then a menu browser. · 5 parts
01How React runsGoal: Scaffold a project with Vite, explain JSX vs HTML, explain what a component is and why React re-renders, and run the dev server well enough to read its error overlay instead of fearing it.~3 h02Components, props and compositionGoal: Write function components that take props the same way any JavaScript function takes arguments, give those props sensible defaults, compose components out of other components (through children and through named JSX "slot" props), and know when and how to split a growing UI into smaller pieces.~4 h03State and eventsGoal: Tell state apart from props, use useState correctly - including why mutating a value directly never updates the screen - wire up onClick/onChange handlers the right way, use an updater function when the next value depends on the last, lift shared state up to a common parent, and see the difference between a controlled and an uncontrolled input.~5 h04Rendering lists and conditionalsGoal: Render an array of data with .map(), choose a key that actually stays stable when the array changes, show or hide UI with &&, the ternary, and early return, and avoid the "0 renders as text" trap - all backed by a real restaurant menu with an out-of-stock state.~4 h05Forms and controlled inputsGoal: Build a real multi-field form - controlled <input>, <select>, checkbox, and radio inputs, onSubmit with preventDefault, validation that runs on submit with inline error messages, a submit button disabled until the form is ready, and - closing the loop Part 3 opened - actually reading an uncontrolled field's value with a ref or FormData.~5 hPMenu BrowserStage project — build it after Part 5project

Stage 2 Stage 2: Intermediate

useEffect and side effects, custom hooks, useRef and the DOM, useContext, and useReducer — then an expense tracker UI. · 5 parts
06useEffect and side effectsGoal: Tell a side effect apart from a plain render-time calculation, write your first useEffect, use the dependency array correctly - including the stale-closure bug you get from leaving a value out of it - write a cleanup function and know exactly what it is protecting against, recognize the single most common effect mistake (using an effect to hold a value you could have just computed), see what React's StrictMode double-invoke in development is actually proving, and know when a side effect is the wrong tool entirely.~5 h07Custom hooksGoal: Recognize duplicated useState/useEffect logic across components, extract it into a reusable useXyz function, follow the rules that keep React able to track a component's hooks render after render, and build three small, genuinely reusable hooks (useToggle, useLocalStorage, useDebounce) - while telling apart what a custom hook actually shares (logic) from what it does not (state itself).~4 h08useRef and the DOMGoal: Use useRef for its two real jobs - a handle to a real DOM node (focus, scroll, measure) and a mutable instance variable that survives re-renders without causing one - tell both apart from useState, know the installed React version's idiom for forwarding a ref through a custom component, and know when reaching for a ref is the wrong move entirely.~3 h09useContextGoal: Recognize prop-drilling pain for what it actually is (components forced to know about a value they never use, purely to forward it), create and provide a context, consume it with useContext, keep state and the Provider that owns it in one place, know createContext's default-value rule, split contexts to limit unnecessary re-renders, and wrap a context in a custom hook that fails loudly when used outside its Provider.~4 h10useReducerGoal: Recognize the moment several related useState calls stop being a convenience and start being a liability; model a UI's state transitions as action objects and one pure reducer function; wire that reducer in with useReducer's signature, including its lazy-initialization third argument; know why dispatch's identity is guaranteed stable across renders; preview pairing a reducer with context; and test a reducer the cheapest way there is - as a plain function, no component involved.~5 hPExpense Tracker UIStage project — build it after Part 10project

Stage 3 Stage 3: Advanced

Fetching data, performance, error boundaries and code splitting, and testing React components — then a book finder. · 4 parts
11Fetching dataGoal: Fetch data inside useEffect without the three mistakes that quietly break almost every first attempt - modeling loading/error/success as three disagreeing booleans instead of one value, letting a slower earlier request overwrite a faster later one, and leaking a request that nobody is waiting for anymore - then cancel a stale request for real with AbortController, stop coding independent requests one after another, and move the whole pattern into a reusable hook.~5 h12PerformanceGoal: Prove a render is genuinely slow before touching a single memoization API, then apply useMemo, React.memo, and useCallback correctly, know exactly when memoizing is wasted effort instead of a win, and use key to force a clean remount on purpose.~4 h13Error boundaries and code-splittingGoal: Know exactly what an error boundary catches - a render-phase throw in a descendant - and what it quietly does not: an event handler's throw, a rejected promise, anything outside render. Write the one class component this course still asks you to write, give it a real fallback and a working reset, then lazily load a part of the UI with React.lazy and Suspense and prove, for real, that its code only ships to the browser once something actually asks for it.~4 h14Testing React componentsGoal: Make testing a first-class topic instead of something this course has only ever done implicitly. Know Testing Library's query priority and why getByRole comes first, when user-event behaves differently from fireEvent and why that difference is real, the right async tool for the right shape of "wait for this," fake timers, the two ways to test a hook, what a test should never look at, and how to arrange test data without copy-pasting the same object into every test.~5 hPBook FinderStage project — build it after Part 14project

Stage 4 Stage 4: Routing and Application Architecture

React Router and structuring a growing app — then a routed bookstore capstone. · 2 parts
15React RouterGoal: Turn a single-screen app into a real multi-page app without leaving the browser - define routes and nested routes with layouts, read URL params and search params, navigate with <Link>/<NavLink>/useNavigate, fetch a routed page's own data the exact same way Part 11 already taught (no router-owned loaders), build a catch-all 404, and guard a route behind a mock auth check.~5 h16Structuring a growing appGoal: Nothing in this part is a new React API - every hook, every component shape, every piece of state you'll touch below was already taught by Part 15 or earlier. This part is about where you put things once a project has outgrown one flat components/ folder: feature folders instead of type folders, colocating a component with its own hook/styles/test, the real cost barrel files carry, a decision framework for where a given piece of state should live (including the URL, Part 15's contribution), the boundary a feature's own index.js draws around its internals, a survey-only note on when useReducer stops being enough, environment variables, and the three commands that actually ship a build to a static host.~4 hPBookstoreStage project — build it after Part 16project

Stage 5 Stage 5: Specialization (pick ONE)

Pick one React track — state management, testing and quality, UI engineering, or production and performance. · 4 tracks
17Part 17 — Stage 5: Specialization (pick ONE)Goal: Go deep in one direction once you have a working, tested, routed SPA (Stage 4's capstone) behind you4 tracks

Search the guide