Next.js is a React framework with server-side rendering, file-based routing, and API routes.
Getting Started
What is React?
Components & Props
Components & Props
Performance & Testing
React.memo & Lazy Loading
Custom Hooks
Building Custom Hooks
Error Boundaries
Error Handling
Server Components
React Server Components
Next.js Introduction
Next.js Basics
Animations & Transitions
Framer Motion
React
Intermediate
FREE
Next.js Basics
Lesson 1 of 17
Intermediate
Interactive
Syntax
REACT
// app/page.tsx export default function Home() { return <h1>Welcome to Next.js</h1>; } // app/about/page.tsx export default function About() { return <h1>About Us</h1>; }
Next.js Page Routing
REACT
// app/page.tsx (Home page) export default function Home() { return <h1>Welcome to Next.js</h1>; } // app/about/page.tsx export default function About() { return <h1>About Us</h1>; } // app/blog/[slug]/page.tsx export default function BlogPost({ params }) { return <h1>Post: {params.slug}</h1>; }