Setting Up Next.js with TypeScript from Scratch
Set up TypeScript in a Next.js project, from the generated tsconfig to typed config and the generated type file.
Full-stack React framework
Set up TypeScript in a Next.js project, from the generated tsconfig to typed config and the generated type file.
Development mode optimizes for fast feedback, and production mode optimizes for fast page loads. Learn what changes after next build.
Read searchParams as a promise in a Server Component to drive filters, sorting, and pagination with server-side fetching.
Streaming sends HTML to the browser in chunks as each part of a page becomes ready. Learn how Suspense and loading files make it work.
Skeletons mirror the shape of loading content to prevent layout shift. Learn to build them in Next.js with loading files and Suspense fallbacks.
SWR caches, deduplicates, and revalidates client-side requests. Learn to set up useSWR in a Client Component.
TanStack Query manages server state with a client cache. Learn to set up the provider and use useQuery in a Client Component.
Seed a client data cache with data the server already fetched, so the first render shows content and skips a duplicate request.
Cap slow requests with AbortSignal.timeout and catch failures before they blank the page. Learn the timeout and error handling pattern.
How Next.js 16 decides whether a component is rendered at build time or request time, and how Cache Components turn one route into a mix of both.
How Partial Prerendering, server-side rendering, static site generation, and incremental static regeneration differ in Next.js 16, and which to choose.
How to update static pages without rebuilding the site, using both the Cache Components model and the older revalidate-based ISR in Next.js 16.