Skip to main content
⏱️ Duration: 25 minutes | This is the core technology powering rmitnct.club!

What is Next.js?

Next.js is a React framework that gives you everything you need for production. If React is a sword, Next.js is the entire armory! ⚔️🛡️
Fun Fact: Next.js was created by Vercel and is used by TikTok, Nike, Notion, Anthropic, LG, and Tuturuuu. It powers both rmitnct.club and Neo League 2025!

Creating a Next.js Project

The fastest way to create a Next.js app:
When prompted, select these options for this workshop:
  • ✅ TypeScript
  • ✅ Tailwind CSS
  • ✅ App Router
  • ❌ src/ directory (optional)
Open http://localhost:3000 to see your app!

Next.js Templates

Browse 100+ ready-to-use templates for blogs, e-commerce, dashboards, and more!

Project Structure


File-Based Routing

In Next.js, files become pages. Create a file, get a route! How page.tsx creates routes

Creating Your First Page

Create app/about/page.tsx:
Now visit http://localhost:3000/about!

Layouts

Layouts wrap pages with shared UI (navbars, footers, etc.).

Root Layout (app/layout.tsx)

How layouts wrap pages

Server vs Client Components

Next.js has two types of components:

Server Component (Default)

Client Component

Rule of Thumb: Keep components as Server Components unless they need interactivity (onClick, useState, etc.).

Use the Link component for navigation:
Why Link? It enables client-side navigation without full page reloads - much faster!

Dynamic Routes

Create pages with dynamic parameters:

File: app/blog/[slug]/page.tsx

Now /blog/hello-world will show “Blog Post: hello-world”!

API Routes

Build your API in the same project:

File: app/api/hello/route.ts

Now visit http://localhost:3000/api/hello!

Building for Production

Or deploy to Vercel with zero configuration:

Complete Example: Blog


Next.js Cheat Sheet


Learn More

Next.js Docs

Complete documentation

Next.js Learn

Free interactive course

Next up: Vercel AI SDK →