React in Practice: Forms, Data Fetching, Server Components, Routing & Testing
Controlled forms, data fetching options, Suspense and code splitting, Server Components and Actions, routing, state management, testing and React 19 features.
What is the difference between a Server Component and a Client Component?
Tap to flip
Back
Server Components render on the server (at build or request time), can read databases and files directly, can be async, and send no component JavaScript to the browser. Client Components (marked with "use client" at the top of the file) can use state, effects and browser APIs. Server Components cannot use useState, useEffect or event handlers.