Interview Q&A · questions with model answers

Next.js Developer Interview Questions

Part of the study plan for: Frontend Engineer · Full Stack Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Why don't layouts re-render on navigation, and what are the implications?

    Layouts persist across navigations between their child routes, so their state and DOM are preserved and only the changed segments re-render, which makes navigation fast.

  2. Why does `next/image` require `remotePatterns` for external images?

    The image optimizer fetches and resizes remote images on your server, so an allow-list prevents attackers from using your deployment as an open image proxy (cost and abuse).

Was this page helpful?

Report a mistake