Next.js
Server components, rendering modes, routing and data fetching in Next.js.
14 lessons 35 practice questions about 1 hours of reading
Chapter 1, beginner
Foundations
What it is and how it works, the questions every round starts with.
- 01Next.js vs React: what is the difference?
Lesson, 6 min read, then 5 questions to practise
- Choose a rendering strategy per route for a marketplace
- Build Next.js App Router routing from files: dynamic and catch-all segments, route groups and conflicts
- Decide the server/client component boundary for a Next.js product page
- Migrate a large webpack app to Vite or Next.js without a feature freeze
- Implement a basic client-side router using the History API
Chapter 2, intermediate
In depth
How it behaves under the hood, and the follow-ups that come next.
- 02App Router vs Pages Router in Next.js: what is the difference?
Lesson, 6 min read, then 3 questions to practise
- 03getServerSideProps vs getStaticProps in Next.js
Lesson, 6 min read, then 3 questions to practise
- Design book search end to end: instant suggestions, a server-rendered results page, CDN caching and the search backend
- Fix a Next.js page that shows stale data, layer by layer through its caches
- Design a news article page like the New York Times: ads without layout shift, a metered paywall, speed, SEO and sharing
- 05How does data fetching work in the Next.js App Router?
Lesson, 7 min read, then 3 questions to practise
- 06How does next/image optimize images in Next.js?
Lesson, 5 min read, then 5 questions to practise
- Design image delivery for an e-commerce site: responsive images, AVIF and WebP, CDN transforms, the LCP image and placeholders
- Diagnose and fix a poor LCP on a product page
- Fix layout shifts from ads, web fonts, images and late banners
- Simulate how the browser picks an image from srcset and sizes: width and density descriptors and DPR
- Design Instagram/Pinterest Explore: infinite masonry grid, caching, and image optimization
- 07Server Components vs Client Components in Next.js: what does 'use client' do?
Lesson, 6 min read, then 1 question to practise
- 08SSR vs SSG vs ISR in Next.js: when to use which?
Lesson, 6 min read
- 10What are Server Actions in Next.js?
Lesson, 5 min read, then 3 questions to practise
- 11
Chapter 3, advanced
Senior level
Trade-offs, edge cases and the questions senior rounds end on.
- 12How do you implement role-based access control in Next.js?
Lesson, 6 min read, then 4 questions to practise
- Design a multi-tenant SaaS admin dashboard: RBAC, tenant isolation, white-labelling, audit logs and entitlements
- Design a CMS dashboard: real-time updates, role-based access, virtualised lists and offline edits with conflicts
- Build a recursive navigation menu from config: permission filtering, disclosure groups and arrow keys
- Build login, register and a protected dashboard without a router library: AuthProvider, useAuth and redirects
- 13
- 14How does caching work in Next.js?
Lesson, 5 min read, then 1 question to practise