Session Plan
Next.js
Why Next.js?
Server-Side Rendering (SSR) and Static Site Generation (SSG)
Explanation of SSR and SSG
Use cases for SSR and SSG
Server Components for SSR
When to Use Client vs. Server Components?
Introduction to Next.js App Router
Overview of Next.js routing system
Advantages over traditional client-side routing
Basic Next.js Routing
Next.js Router Hooks
Understanding the useParams Hook (client-only)
useParams Hook (client-only)Understanding the useSearchParam Hook (client-only)
useSearchParam Hook (client-only)Working With the useRouter Hook (client-only)
useRouter Hook (client-only)Working With params and searchParams in Server Components
params and searchParams in Server ComponentsAdvanced: Server Functions & API Routes
Server Functions
Server Components
Server Actions
API Routes
Vercel
Introducing Vercel & Good Use Cases
Connecting a GitHub Repository With Vercel
Limitations of Vercel
Exercises
1. Installing Next.js and Getting Started
2. Create a Page That Renders a random dog image using Server Side Rendering
3. Fetch placeholder blog posts from an API
4. Client vs. Server Exercise
Docs
5. Routing and Navigation Exercise
Create a Blog Website With Dynamic Routes to Different Blog Posts
Create a page that displays an image of a dog of a specific breed depending on a query string parameter received
6. Server Functions (or Server Actions) & API Routes Exercise
Server Functions (or Server Actions)
Trying out API Routes
Last updated