Loading lesson…
Level 1 · Apprentice0 XP
Routes from folders, layouts, Server Components, server actions and caching.
Step 1 / 6
ProblemA single-page app downloads 900 KB of JavaScript, then fetches data, then renders. On a slow phone, users stare at a white screen for four seconds.
← → step
Before this: Server components and actions
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Build /orders and /orders/[id] with the App Router: a layout, loading and error files, a Server Component that reads data, a small client component for a filter, and a server action that cancels an order after checking the user.