CodeZettaInterview Hub

Next.js · Server Components · Tech Lead · Scenario

Lead scenario: team is marking whole pages as Client Components for convenience. What do you do?

Short Interview Answer

Re-establish RSC defaults, create interactive leaf patterns, lint for root-level 'use client', and educate on bundle/cost trade-offs.

Detailed Explanation

Provide shared client primitives (dialogs, forms). Audit top routes for unnecessary client roots. Track JS payload in CI. Make the default path the performant one.

Did you know this answer?