Level 1 · Apprentice0 XP
Which code runs on the server, which runs in the browser, and why it matters.
Step 1 / 5
ProblemA page that only displays text ships the whole rendering library, a date library and a markdown parser to the phone. It then fetches the article in a second request. The user waits twice.
← → step
Before this: Loading, errors and transitions
🛠️ 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.In a Next.js app, write a server component that reads a list from a file or database and renders it, with one small client component for a 'like' button. Look at the network tab and find which JavaScript was sent. Then add a server action and make it reject a caller who is not logged in.