Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumReactReact.memo bailoutSingle-choice MCQ

You wrap a component in React.memo and supply a custom comparison function. The component still never re-renders even when the prop you care about changes. What is the most likely cause?

const Row = React.memo( function Row({ user }) { return <li>{user.name}</li>; }, (prev, next) => prev.user.id === next.user.id );