Next.js · Junior · Question 9 of 75

What kind of components are files in the app/ folder by default?

Explanation

In the App Router, everything is a Server Component by default: the code runs on the server and doesn't end up in the client bundle. To use state, effects, event handlers or browser APIs, add 'use client' at the top of the file.

Further reading

Problem with a question

Next.js · Junior · question 9

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz