Recall & Review
beginner
What is a server component in Next.js?
A server component is a React component that runs only on the server. It fetches data and renders HTML before sending it to the browser, improving performance and reducing client-side JavaScript.
Click to reveal answer
beginner
Why are server components the default in Next.js 14+?
Server components are default because they reduce the amount of JavaScript sent to the browser, improve load speed, and simplify data fetching by running on the server.
Click to reveal answer
intermediate
How do server components improve user experience?
They send fully rendered HTML to the browser quickly, so users see content faster. This reduces waiting time and improves accessibility and SEO.
Click to reveal answer
beginner
What is a key difference between server and client components in Next.js?
Server components run only on the server and do not include client-side JavaScript, while client components run in the browser and handle interactivity.
Click to reveal answer
intermediate
How does using server components affect bundle size?
Using server components reduces the JavaScript bundle size sent to the browser because server logic stays on the server, making pages lighter and faster.
Click to reveal answer
Why does Next.js make server components the default?
✗ Incorrect
Server components reduce client-side JavaScript, improving load speed and performance.
Which of these runs only on the server in Next.js?
✗ Incorrect
Server components run only on the server and do not send JavaScript to the client.
What is a benefit of server components for SEO?
✗ Incorrect
Server components send ready HTML, making content easy for search engines to read.
How do server components affect JavaScript bundle size?
✗ Incorrect
Server components keep logic on the server, reducing JavaScript sent to the client.
Which is true about client components in Next.js?
✗ Incorrect
Client components run in the browser and manage user interactions.
Explain why Next.js uses server components as the default for rendering pages.
Think about how server components help users see content faster.
You got /4 concepts.
Describe the main differences between server components and client components in Next.js.
Consider where the code runs and what it does.
You got /4 concepts.