← Next.js & Shipping
Lesson 2 · triangle Next.js & Shipping
Server & Client Components
Decide correctly which components need 'use client'.
Before you start
In the App Router everything is a Server Component by default: it runs on the server, can await data directly, and ships zero JavaScript to the browser. "use client" opts a component and its imports into the browser bundle. Push that boundary as deep as you can.
5 exercises·up to 72 XP·5/5 hearts