When does memo really help, and when does it not?
Answer
•Memo is useful if a component re-renders frequently with the same props.
•If props always change (new objects) — little benefit.
•Optimization requires measurements (profile).
•Memo increases complexity.
•First, optimize architecture and state.
Was this answer helpful?