What is a key difference between shouldComponentUpdate and React.memo?
A key difference is that React.memo can only compare props, not state, because it's designed for functional components which don't have their own state in the same way class components do. shouldComponentUpdate, on the other hand, allows class components to compare both next props and next state to current props and state to determine if re-rendering is necessary.