Next.js je full-stack React framework. React sam po sebi je samo UI biblioteka — renderira komponente ali vam ostavlj routing, dohvat podataka, serverski rendering i build alate. Next.js pruža sve to od početka, plus server runtime.
Što React ostavlja (i Next.js dodaje)
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
