Skip to content
Learn at your own pace

Learn Next.js

Build on React with page routing, server-rendered content and interactive client components in Next.js.

Students assemble a modular house from reusable pieces, alongside a laptop showing the same structure.
Build something bigger from reusable parts.
24lessons in 6 stages
48practice exercises
24project milestones
96quiz questions
96review cards

A clear place to start

Next.js builds on React with routing, server rendering, and server-side application features. It connects pages and data while keeping browser interaction in focused components.

What you need first

Complete React components, props, state, and events first. Know JavaScript async/await and basic HTTP. Understand where server code and browser code execute.

Start with these ideas

  1. A page defines route content, while a layout wraps related pages with shared structure.
  2. Server components can read server-owned data. Client components provide browser interaction and local state.
  3. Every server mutation still needs input validation and permission checks. A server location alone does not establish trust.

Connect it to a real project

Build a learning journal with public articles, private entries, dynamic routes, useful loading states, and safe editing.

Study one concept at a time. Explain its everyday example in your own words, predict the worked example’s result, then try a small change. Use practice and quiz feedback to decide what to revisit. You can spread a lesson across several study sessions.

Set up your environment Tools, setup steps, and completion requirements

Start with the ideas above, then set up the tools below. Return to the starter example whenever a new term feels unfamiliar.

text
node --version
npx create-next-app@latest
# Select App Router and record the generated framework/runtime versions.
# Inside the generated project:
npm run dev
npm run build
npm start
# Run production-mode checks as well as development checks.
# Caching APIs and deployment limits must match the version and host you use.

A free account saves your progress, notes, exercise evidence and spaced review cards. To complete a lesson, score at least 80% on its quiz, finish both exercises and the project checklist, and submit your project link with a reflection. Project evidence is self-reported; use the final portfolio rubrics to seek an independent code review.

Your Next.js learning path

Work through these foundations in order, then bring them together in a project.

24 of 24 lessons · follow the stages in order

Start with a small example

In a Next.js App Router project, app/page.jsx defines the home page. This component renders a list without requiring client-side state.

// app/page.jsx
export default function HomePage() {
    const topics = ['Routing', 'Layouts', 'Data'];

    return (
        <main>
            <h1>My learning path</h1>
            <ul>
                {topics.map((topic) => <li key={topic}>{topic}</li>)}
            </ul>
        </main>
    );
}

Try it yourself

Add a shared layout, then create an /about page and link to it using the Next.js Link component.

Put it into practice

Build a learning journal

Create a small site with an entry list and a page for each entry.

  1. Render journal entries from a local data module.
  2. Create a dynamic route for each entry and handle unknown entries.
  3. Add page metadata and a shared layout.
  4. Add a client component that filters the entry list and test navigation.
Keep exploring

Find your next course

Choose a language, build on it with a framework, or explore AI and search.

Showing 6 of 17 courses