React 46 ⚛️ Component Memoization with React memo
React re-renders a component when its state changes, when its props change, or when its parent re-renders. The third case is the one that surprises developers. A parent re-renders because of its own state change, and every child re-renders with it, even the children whose props have not changed. For a small component tree, this…