Next.js je full-stack React framework. React sám o sobě je jen UI knihovna — vykresluje komponenty, ale routing, fetch dat, server rendering a build tooling nechává na vás. Next.js poskytuje všechno to z krabice navíc s server runtime.
Co React sám schází (a Next.js přidává)
text
React (library) → Next.js (framework) adds:
──────────────────────────────────────────────────
UI rendering only → File-based routing (folders = routes)
Client-side rendering → Server rendering (SSR), static generation (SSG), ISR
You wire data fetching → Built-in data fetching + caching
No backend → API routes / Route Handlers (full-stack)
Manual bundling → Zero-config build, code splitting, optimization
Manual <img> → next/image (auto-optimized images), next/font
