What is state colocation?
Props and State
Audio flashcard · 0:10Nortren·
What is state colocation?
0:10
State colocation is the practice of keeping state as close as possible to the components that actually use it. It is React's default recommendation and avoids unnecessary re-renders in unrelated parts of the tree.