Fixing memoization-breaking re-renders in React
When a parent component passes down a callback function to a memoized child component through its props, React will re-render the child component every time the parent component gets re-rendered, even though the child component is memoized. In this article, we’ll look into that problem, and learn how to fix it.