3 min read
ā¢Question 1 of 47easyWhat is Next.js?
Understanding Next.js framework and its features.
What You'll Learn
- What Next.js is
- Key features
- Why use Next.js
What is Next.js?
Next.js is a React framework that provides server-side rendering, static site generation, and other production-ready features out of the box.
Key Features
- Server-Side Rendering (SSR) - Pages rendered on server
- Static Site Generation (SSG) - Pre-build pages at build time
- File-based Routing - Routes based on file structure
- API Routes - Backend endpoints in same project
- Image Optimization - Automatic image optimization
- Zero Config - Works out of the box
Why Next.js?
code.jsJavaScript
React (SPA) vs Next.js
āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā
Client-side only SSR + SSG + CSR
Manual routing File-based routing
No SEO by default SEO friendly
Manual code splitting Automatic splitting