InterviewHubPRO
Section Overview
Q183

Question 183 of 445

Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

41%
React & Modern Frontend (445 Qs)•Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

What is NextJS and major features of it?

Next.js is a popular and lightweight framework for static and server‑rendered applications built with React. It also provides styling and routing solutions. Below are the major features provided by NextJS,

  1. Server-rendered by default
  2. Automatic code splitting for faster page loads
  3. Simple client-side routing (page based)
  4. Webpack-based dev environment which supports (HMR)
  5. Able to implement with Express or any other Node.js HTTP server
  6. Customizable with your own Babel and Webpack configurations

Practical Code Example

javascript
// Next.js: Full-stack React framework featuring:
// 1. App Router with React Server Components (RSC)
// 2. Hybrid rendering (SSR, SSG, ISR)
// 3. API Route Handlers
// 4. Built-in Image, Font, and Script optimization