StaffCoder
Next.js

Next.js Practice Exercises

Next.js 16Node.js 24
2 modules · 8 challengesSign up
Modules2 modules · 8 challenges
Module 1 of 2 · 4 challenges

Routing & Layouts

The file system is the router, and layouts stop the app repeating itself. Nested layouts, route groups, the metadata API, and per-segment loading, error and not-found states. The lesson is scope: which segment owns the chrome, and which owns the failure.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Bakery Storefront

Sign up to unlock
50%1 of 2 solvedeasy
About this challenge

This problem covers the parts of a site that stay the same on every page, like the header and footer. It also looks at giving each page its own browser tab title instead of one shared across the whole site.

Solved in a browser IDE and graded by tests. Sign up to solve

Travel Guide Sections

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

Here you handle a site with two very different sides — a public area and a members' area — that need to look nothing alike. The catch is that neither the addresses people share nor the pages themselves can change to make it work.

Solved in a browser IDE and graded by tests. Sign up to solve

Clinic Portal

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

Build a clinic portal that shows a loading skeleton while a page is fetching, a friendly error screen with a working retry when something breaks, and its own not-found page for missing appointments. A practical task to show you can handle the states a page hits when things are slow or go wrong, without exposing internal details.

Solved in a browser IDE and graded by tests. Sign up to solve

Bookshop Site

STAR
Solving it completes the module
100%1 of 1 solvedeasy
About this challenge

This task brings the shared layout, the section menu and the loading states together into one working site. Moving between sections should feel seamless, with only the part that changed actually changing.

Solved in a browser IDE and graded by tests. Sign up to solve

About this path

Master the Next.js App Router end to end: layouts and routing, server vs. client components, data fetching and caching, Server Actions, streaming, middleware and sessions. Every problem is a real defect in a working app, fixed the way the framework intends. Runs from Easy to Hard on a seeded in-memory store, graded on tested behaviour. Each topic closes with a Star Problem that combines everything in it into one screen: solve the full set if you want the practice, or clear just the Star Problem and move on to the next section.

This path starts with routing in Next.js 16: routes and layouts, then navigation and linking. You should know React basics before you start. No earlier Next.js experience is needed. The navigation module has you build pages people move between, such as a job board with filters and a property search page.

From the blog

2

Frequently asked questions

4

What will I practice in this path?

2 modules: Routing & Layouts and Navigation & Linking.

How many Next.js exercises are there, and how hard are they?

8 exercises, all easy.

What does this path run on?

Challenges run on Next.js 16 and Node.js 24.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.