How to optimize large lists?
Use virtualization, pagination, memoization, stable keys, avoid expensive render logic, and move state close to where it is needed.
Page 4
Server components, routing, SSR, SSG, and App Router architecture.
Showing 1-6 of 70 questions
Use virtualization, pagination, memoization, stable keys, avoid expensive render logic, and move state close to where it is needed.
Page 4
Next.js is a React framework for routing, SSR, SSG, API routes, image optimization, and production-ready web apps.
Pages router uses pages directory and file-based routes. App router uses app directory, layouts, server components, and nested
routing.
Dynamic routing creates pages like /blog/[slug] where slug value comes from URL.
SSR renders on each request. SSG renders at build time. ISR updates static pages after a revalidation time.
Server components render on server, reduce client JS, can access backend resources, but cannot use browser-only hooks like
useState.