Next.js & App Router (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What is Next.js, and how does it extend standard React?
junior LevelnextjsBasic
In Simple Words:
- Standard React (Vite / CRA): A client-side library. Ships an empty HTML shell (
<div id="root"></div>) and a massive JavaScript bundle. The browser downloads the JS, builds the DOM tree, and renders. This causes slow initial page load (FCP/LCP) and poor SEO. - Next.js: A production full-stack React framework. It extends React with:
- Server-Side Rendering (SSR) & Static Site Generation (SSG): Pre-renders HTML on the server.
- React Server Components (RSC): Runs components exclusively on the server, shipping 0KB of JS to the client.
- Built-in File-Based Routing & API Routes.
- Automatic Image, Font, and Script Optimization.
- Zero-Config Bundling via Turbopack.