Skip to content
Learn Netverks

Lesson

Step 2/36 6% through track

what-is-nextjs

What is Next.js?

Last reviewed Jun 1, 2026 Content v20260601
Track mode
client_nextjs
Means
In-browser Next.js (client components)
Reading
~2 min
Level
beginner

This lesson

This lesson teaches What is Next.js?: the concepts, APIs, and habits you need before advancing in Next.js.

Without What is Next.js?, you will struggle to read or extend Next.js codebases and playground exercises.

You will apply What is Next.js? in contexts like: Marketing sites, dashboards, e-commerce, and Vercel-style deployments that need hybrid static + dynamic pages.

Write TSX for Client Components, click Run—React 18 CDN + in-browser TSX compile; use client/server lessons explain App Router concepts; mountApp renders interactive UI; printOutput feeds the terminal.

After solid JavaScript—and ideally TypeScript—before starting the nextjs track.

Next.js is built by Vercel and sits on React. It is not a replacement for React—it orchestrates React apps: builds, routes, renders on the server when useful, and ships less JavaScript when possible via React Server Components.

Core capabilities

  • File-system routing — folders in app/ become URLs
  • Hybrid rendering — static pages, server-rendered per request, or client-only islands
  • Data loading at the right layer — async Server Components, Route Handlers, Server Actions
  • Built-in optimizations — image/font helpers, code splitting, metadata API
  • Deployment story — especially smooth on Vercel; also runs on Node, Docker, and other hosts

App Router vs Pages Router

New projects use the App Router (app/). The older Pages Router (pages/) remains in maintenance mode for legacy codebases—we cover it briefly at the end of this track. All primary lessons assume App Router.

Important interview questions and answers

  1. Q: Is Next.js a framework or a library?
    A: A meta-framework (or full-stack React framework)—it includes routing, rendering modes, and build/deploy conventions beyond React’s view layer.
  2. Q: Why use Next.js instead of React + React Router?
    A: Less boilerplate for SSR/SSG, SEO-friendly defaults, server/client boundaries, and integrated data patterns—trade-off is framework opinion and deployment coupling.
  3. Q: What is the App Router?
    A: The app/ directory convention with layouts, nested routes, Server Components, and special files like loading.tsx and error.tsx.

Self-check

  1. Name two features Next.js provides that you would wire manually in a Vite SPA.
  2. Which router does this track focus on?

Interview prep

App Router vs Pages Router?

App Router uses app/ with RSC, layouts, and special files; Pages Router uses pages/ with getStaticProps/getServerSideProps—new work should prefer App Router.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Meta-framework vs library?
  • What does Next own that React does not?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump