InterviewBuddy
All interview questions

Why can a component render more than once?

Intermediate

Answer

State or prop changes, parent renders, context updates, and development checks can cause renders. React may calculate a render without committing a DOM change.

Explanation

Rendering should be pure so repeated or discarded renders do not create side effects. Measure before adding memoization.

Example

Render calculates UI; commit applies changes.