Stage 2
Stage 2: The Rendering Model
Content wave complete. Parts 5–8 and the Recipe Box capstone are written, built, and verified against this harness — see each part's own README for real, captured output.
Goal: Understand exactly what code runs on the server vs in the browser, and why that boundary is the single biggest new idea coming from a client-only React background. Time: ~22 h of lessons + ~8 h capstone (~30 h total) at 1–1.5 hours a day · Level: comfortable with Stage 1's routing/layouts
Parts in this stage
| Part | Topic | Learning outcomes | Time |
|---|---|---|---|
| 5 | Server Components by default | Explain the React Server Components (RSC) mental model: every component is a Server Component unless marked otherwise; explain the serialization boundary (what can and can't cross it); explain why useState/useEffect can't run in a Server Component |
~5 h |
| 6 | Client Components and the boundary | Add the 'use client' directive correctly; follow the composition rule (Server Components pass data down to Client Components as props, not the other way around); decide when a component must be a Client Component (event handlers, hooks, browser-only APIs) |
~6 h |
| 7 | Streaming and Suspense | Use loading.tsx and <Suspense> boundaries to stream slow content; explain the streaming SSR mental model (a static shell arrives first, dynamic pieces fill in); build a skeleton-loading UI |
~6 h |
| 8 | Next.js's rendering philosophy | Explain static vs dynamic as a component-level spectrum, not a route-level either/or; contrast this with the route-level static/dynamic split used by other frameworks (and by this repo's own Python/React courses' simpler mental models); name where Partial Prefetching and Cache Components fit (previewed here, taught fully in Stage 3) | ~5 h |
Prerequisites for this stage
- Stage 1 (routing, layouts, navigation)
- Comfort with React's component/props model from the sibling React course — this stage reframes it, it doesn't re-teach it
Stage 2 capstone: Recipe Box
A content-focused site that proves the Server/Client boundary in a real app, not just in isolated snippets.
Acceptance sketch (the project README has the final checklist):
- Recipe list and recipe detail pages are Server Components and ship no client-side JavaScript for their content
- At least one small Client Component island (e.g. a serving-size stepper) is interactive without making the whole page a Client Component
- A "save this recipe" button is a Client Component that receives server-fetched data as props
- A "related recipes" section streams in behind a
<Suspense>boundary with a visible skeleton, without blocking the rest of the page - A short written note (part of the deliverable) correctly labels which files in the project are Server vs Client Components, and why