Next.js Tutorial
A complete Next.js App Router path from beginner to pro - with every React skill taught inside Next.js when you need it. No separate React course required.
Curriculum
Work through each section in order. Every lesson ends with practice and key points so the idea sticks.
Getting Started
- 1What is Next.js?
Learn what Next.js is, what it adds to React, and why it is popular for modern web apps.
8 min - 2Learn Next.js Without a React Course First
Understand why you can learn React concepts directly while learning Next.js.
8 min - 3Install & Create a Next.js App
Set up your tools and create a new Next.js app with the official starter command.
9 min - 4Project Structure (App Router)
Learn the important files and folders in a modern Next.js App Router project.
10 min - 5Dev Server, Files & Hot Reload
Learn the daily workflow for editing files and seeing changes in a Next.js app.
8 min
React Essentials Inside Next.js
- 6JSX: The Language of Next.js Pages
Learn how JSX lets you write page UI with HTML-like syntax inside TypeScript files.
10 min - 7Your First Page
Create a home page and understand how App Router turns files into routes.
9 min - 8Components
Split a Next.js page into reusable React components.
10 min - 9Props
Pass information into components with props and TypeScript types.
11 min - 10children & Composition
Use children to place content inside reusable wrapper components and layouts.
10 min
Building the UI
Routing Foundations
- 14Links & Navigation
Navigate between App Router pages with the Next.js Link component.
10 min - 15Layouts & Nested Layouts
Use App Router layouts to share UI across pages and route groups.
11 min - 16File-based Routing
Learn how folders and page.tsx files create routes in the App Router.
10 min - 17Dynamic Routes
Use bracket folders to create pages for changing values like slugs and IDs.
11 min - 18not-found & error.js
Show friendly 404 and error UI in App Router routes.
11 min
Interactivity
- 19Server Components vs Client Components
Understand the modern Next.js component model and when to use use client.
14 min - 20useState for Interactive UI
Use React state in a Client Component to update the screen after user actions.
12 min - 21Events & Controlled Forms
Handle user events and build a controlled form in a Client Component.
13 min - 22Lists & Keys
Render arrays of data in JSX and use keys correctly.
10 min - 23Conditional Rendering
Show different UI based on data, state, route values, or loading conditions.
10 min - 24useEffect (When You Need the Browser)
Use useEffect carefully for browser-only side effects in Client Components.
12 min
Shipping Basics
Data & Async UI
- 26loading.js & Suspense
Use loading.js and Suspense to show instant loading states while Server Components fetch data.
11 min - 27Fetching Data in Server Components
Fetch data directly inside App Router Server Components and render pages without a separate client-side loading step.
12 min - 28Caching Defaults in Next.js
Understand the caching defaults that affect fetch, routes, and when your pages update.
13 min - 29Revalidation Strategies
Refresh cached pages and data with time-based, path-based, and tag-based revalidation.
13 min
Backend in Next.js
- 30Route Handlers (API Routes)
Create backend endpoints in the App Router with route.ts files and standard Web Request and Response APIs.
12 min - 31Server Actions
Run server-side mutations from Next.js components without building a separate API endpoint first.
14 min - 32Forms with Server Actions
Build practical App Router forms that submit directly to Server Actions with validation and pending UI.
15 min
Client Navigation Tools
React Power Tools in Next.js
- 35React Context for Shared UI State
Use React Context inside Next.js Client Components for shared interface state such as themes, drawers, and menus.
14 min - 36Custom Hooks
Extract reusable client-side behavior into custom hooks for focused Next.js Client Components.
12 min - 37useRef & DOM Access
Use refs safely in Next.js Client Components when you need direct access to DOM elements or mutable values.
11 min
App Edge Features
- 38Middleware
Run lightweight logic before a request reaches a route, such as redirects, auth checks, and header updates.
14 min - 39Environment Variables
Store configuration and secrets safely in Next.js using server-only and public environment variables.
10 min - 40TypeScript with Next.js
Use TypeScript types for pages, route params, components, data, and safer Next.js app code.
12 min
Styling at Scale
Real App Skills
- 42Auth Patterns (Cookies, Sessions, Protected Routes)
Learn vendor-neutral authentication patterns for cookies, sessions, protected pages, and redirects.
16 min - 43Connecting a Database
Connect database access to Server Components, Server Actions, and Route Handlers without locking into one vendor.
15 min - 44File Uploads & Media
Handle file uploads in Next.js with forms, Route Handlers, validation, and storage-provider patterns.
14 min - 45Error Handling Patterns
Handle expected and unexpected errors with error.tsx, not-found.tsx, route responses, and careful boundaries.
13 min
Advanced Routing
Shipping
Deep Next.js
- 49Advanced Server Component Patterns
Use React Server Components as the default design tool in a production App Router application.
18 min - 50Client Islands & Composition Patterns
Design interactive islands that fit cleanly inside a mostly server-rendered Next.js interface.
16 min - 51Performance, Bundles & Streaming
Improve real-world Next.js performance by reducing client JavaScript, streaming routes, and measuring the right signals.
19 min - 52Security Essentials for Next.js Apps
Protect production Next.js applications with server boundaries, validation, auth checks, safe redirects, and secure headers.
20 min
Pro Architecture
- 53Structuring a Production Next.js App
Organize App Router projects by routes, features, shared UI, server modules, and production ownership boundaries.
17 min - 54State Strategy: Server, URL, Context, Local
Choose the right state location in a Next.js app and see how practical React mastery emerges from App Router decisions.
20 min - 55Debugging & Testing Mindset
Develop a production debugging workflow and choose targeted tests for App Router behavior.
15 min
Capstone Projects
- 56Mini Project: Personal Portfolio
Build a polished App Router portfolio with metadata, reusable sections, project cards, and responsive styling.
20 min - 57Mini Project: Blog with Markdown/MDX-style Content
Build a file-backed blog pattern with dynamic routes, generated metadata, static params, and content rendering.
20 min - 58Mini Project: Admin Dashboard Shell
Build an authenticated dashboard shell with route groups, summary cards, table UI, loading states, and URL filters.
20 min - 59Mini Project: SaaS Landing + Auth Shell
Build a SaaS marketing page, pricing section, login shell, and authenticated app layout foundation.
20 min - 65What to Learn After This Path
Choose the next advanced topics after completing the Next.js-first Intellex path.
12 min
Polish & Quality
- 60Accessibility in Next.js Apps
Build accessible App Router interfaces with semantic HTML, focus management, forms, navigation, and metadata.
16 min - 61Advanced SEO & Sharing Metadata
Use the App Router Metadata API, Open Graph images, canonical URLs, robots rules, and structured data responsibly.
17 min - 62Internationalization Basics
Plan a locale-aware Next.js app with route segments, dictionaries, metadata, and localized navigation.
16 min - 63Migrating Ideas from CRA/Vite React to Next.js
Translate familiar client-rendered React patterns into App Router patterns without carrying old assumptions forward.
15 min - 64Common Next.js Mistakes (and Fixes)
Recognize and fix production App Router mistakes around client boundaries, caching, params, metadata, auth, and loading states.
18 min