Every tutorial on our blog stands on a demo that runs here. The code in a post is the code that runs on its demo page, and each demo has a test that checks what the post claims.
One form on React 19 Actions: useOptimistic shows the note at once, useFormStatus disables the button, useActionState keeps the Server Function's answer, and the page shows which React build the App Router runs.
A chat built on useChat from @ai-sdk/react and a Next.js route handler that streams a canned reply through streamText and a mock model: watch status go submitted, streaming, ready while the reply grows from text parts.
A Server Component that signs a value with a key that never leaves the server, next to a use client counter that holds a Server Component as children: click, reload, and see which part runs where.
TTFB, LCP, CLS and load time read from the browser's own Performance APIs on this page, with a late banner that raises CLS and a late hero that moves LCP.
Two cities, one cached function: 'use cache' keys the entry by its argument, cacheLife('hours') keeps it, and updateTag in a Server Action clears just one city.
One page, two timestamps: a component cached with 'use cache' is prerendered into the static shell at build time, while one behind connection() and Suspense renders on every request.