Learn any GitHub repo quickly
Paste a repo link to get cloze and multiple-choice cards. Practice a few minutes a day and the code stays in your head.
Try , , or
Do layouts remount on navigation between sibling routes?
"No — layouts preserve state across navigations" is correct, because layouts stay mounted so shared UI and state persist across navigations.
Card 8 of 8
In the App Router, routes are defined by folders under the ___ directory.
"app" is correct, because the app/ directory is the filesystem routing root for App Router projects.
Card 1 of 8
Where do App Router page segments live in a Next.js project?
"app/" is correct, because pages/ is the Pages Router. App Router uses app/.
Card 2 of 8
Shared UI that wraps child segments is defined in __________.
"layout.tsx" is correct, because layout.js/tsx wraps a segment and its children and preserves state on navigation.
Card 3 of 8
A route segment needs a UI. Which file convention renders that segment?
"page.tsx (or page.js)" is correct, because page.js/tsx is the UI for a route. route.js is for Route Handlers.
Card 4 of 8
By default, components in the App Router are ______ __________.
"Server Components" is correct, because files are Server Components by default; add "use client" only when you need browser APIs or interactivity.
Card 5 of 8
How do you opt a file into Client Components?
"Add "use client" at the top of the file" is correct, because the "use client" directive marks the module and its imports as a Client Component boundary.
Card 6 of 8
HTTP API endpoints in App Router are defined in ________ files.
"route.ts" is correct, because route.js/ts exports HTTP method handlers instead of rendering React UI.
Card 7 of 8
Do layouts remount on navigation between sibling routes?
"No — layouts preserve state across navigations" is correct, because layouts stay mounted so shared UI and state persist across navigations.
Card 8 of 8
In the App Router, routes are defined by folders under the ___ directory.
"app" is correct, because the app/ directory is the filesystem routing root for App Router projects.
Card 1 of 8
0 card streak