CodeZettaInterview Hub

React · Components · Fresh / Intern · Architecture

When should you split a component?

Short Interview Answer

When it mixes concerns, is hard to test, or causes avoidable re-renders of large subtrees.

Detailed Explanation

Extract presentational pieces and custom hooks. Avoid premature micro-components that hurt readability.

Did you know this answer?