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.
-
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.
-
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).