CodeZettaInterview Hub

React · Context · Mid-Level · Architecture

Pattern: separate StateContext and DispatchContext — why?

Short Interview Answer

Consumers that only dispatch don't re-render when state changes.

Detailed Explanation

Classic performance pattern with useReducer + dual providers.

Did you know this answer?