Chapter · 12 lessons
Advanced React
Forms, performance, design patterns and TypeScript with React, then routing, data fetching and state management – and finally a whole project and a summary of the principles.
Forms
Advanced React 01Forms and React 19 ActionsWhich tool for which form, controlled vs. uncontrolled, checking with HTML attributes, Actions with useActionState and useFormStatus, a form in practice and useOptimistic.Advanced React 02Validating data with ZodWhy types aren’t enough for outside data, a schema line by line, types from the schema, rules and messages, errors for a form and checking server responses.Advanced React 03Forms in practice: React Hook FormBig forms without the plumbing: register and Zod, errors after leaving a field, errors from the server, custom controls and repeating rows.
Techniques
Advanced React 04Performance and rendering🔓 free after sign-inWhen a component re-renders, memo, useMemo, useCallback, useTransition, useDeferredValue.Advanced React 05Component design patterns🔓 free after sign-inComposition, compound components, render props, portals and error boundaries.Advanced React 06TypeScript for componentsComponents for the whole app: native element props, either–or props, generic components and types for hooks and reducers.
Ecosystem
Advanced React 07Routing (React Router)Pages, parameters, nested layouts, state in the URL, loaders and protected routes.Advanced React 08Data fetchingWhy fetch in useEffect isn’t enough, TanStack Query, Suspense and use().Advanced React 08.1Data that belongs togetherA customer and their orders from different tables: joining on the server, a dependent query with enabled, parallel queries and labels as a tree.Advanced React 09State management: Zustand and ReduxKinds of state and how to choose: Context vs. Zustand vs. Redux Toolkit.