Skip to content

MediumScenarioReact and architecture scenarios

A context value changes often and re-renders the whole tree. Fix?

What a good answer covers

Split contexts, memoise values, move state down, or use a store with selectors such as Zustand.

More on React and architecture scenarios

Flashcards for this topic