Menu

Routing with the App Router

Module 2: Routing with the App Router

Introduction

Every website needs a way to map URLs to pages. In many frameworks you write a list of routes by hand. In Next.js, the folder structure inside app/ is the route list: create a folder and a page.tsx file, and a new URL exists.

This module teaches the App Router from the ground up. You will build LearnHub's main pages, share a header and footer across them with layouts, link between pages, create a page for every course with dynamic routes, and add loading, error, and not-found screens.

What you will learn in this module

  • How folders and page.tsx files become URLs
  • How layouts and templates share UI between pages
  • How to navigate with Link, useRouter, and redirect
  • How dynamic segments like [slug] create pages from data
  • How route groups, private folders, loading.tsx, error.tsx, and not-found.tsx organise and protect routes

Nextjs Tutorial

J

Jebasta





Get in Touch For Details