Loading tutorials
useState and useEffect. You should know basic HTML and the browser DOM. You should also be able to run a small Node.js server such as Express and build JSX with a bundler. Later chapters use these tools. T2 min readuseState and useEffect, basic HTML and the DOM, and that a server can return an HTML string. It covers what the browser does with server-rendered HTML and what React then does to it. It does not cover the hydrateRoot call itself or mismatches,2 min readuseState, useEffect, and basic Express. It also assumes you have a bundler that builds a client entry file.2 min readuseState and useEffect, basic HTML and the DOM, and that you have seen hydrateRoot attach React to server-rendered HTML. It covers what a mismatch is and what it costs. Later chapters cover causes and fixes.2 min readuseState and useEffect, and that you have a working server render and a hydrateRoot call. It covers the inputs that make server and client output differ. The fixes are covered in the chapters that follow.2 min readuseState and useEffect, and that you have seen a hydration mismatch warning. Hydration is the step where React attaches to server-rendered HTML. If the first client render produces different output than the server HTML, React reports a mismatch.2 min readuseState, and useEffect. It also assumes you know what hydration is and why a mismatch between server HTML and the first client render is a problem. Here you will fix one specific source of mismatches: generated ids.2 min readhydrateRoot and a hydration mismatch. Here you will learn how to read browser-only state, such as navigator.onLine, without causing a mismatch.2 min readuseState and useEffect. It also assumes you have seen a hydration mismatch warning, and you know that hydrateRoot attaches React to HTML the server already produced.2 min readuseState and useEffect, and how renderToString and hydrateRoot work. It covers how a <Suspense> boundary splits a page into pieces that the server can send at different times.2 min readrenderToPipeableStream basics, Suspense boundaries, and a simple Express server. Here you will learn when to start sending HTML, how to handle errors before and after sending starts, and how to stop a render that takes too long.2 min readrenderToPipeableStream, attach it with hydrateRoot, and wrap slow parts of the tree in <Suspense>. It covers how React hydrates those boundaries independently.2 min readhydrateRoot, and recognize a hydration mismatch. Here you will see what React does when hydration fails and how to find out that it happened.2 min readrenderToPipeableStream and hydrateRoot. It also assumes you know why a mismatch happens: the first client render produces a different tree than the server HTML. Here you will learn a repeatable way to find the component behind an error.2 min readrenderToPipeableStream, Suspense boundaries, and hydrateRoot work from the earlier chapters. It places React Server Components (RSC) next to SSR so you don't confuse the two. It is an orientation, not a full RSC guide.2 min read