CodeZettaInterview Hub

React · Context · Mid-Level · Best Practice

Why can context cause wide re-renders?

Short Interview Answer

All consumers re-render when the Provider value changes by reference.

Detailed Explanation

Split contexts, memoize value, or use selectors/external stores for fine-grained subscriptions.

Did you know this answer?