CodeZettaInterview Hub

Angular · Components · Fresh / Intern · Architecture

When should you split a large component into smaller ones?

Short Interview Answer

When the template/logic mixes unrelated concerns, re-renders are expensive, or reuse/testing suffers.

Detailed Explanation

Extract presentational components, move state to services or parent containers, and keep templates readable. Prefer composition over inheritance for UI.

Did you know this answer?