Answer
Class components use shouldComponentUpdate(nextProps, nextState) to skip re-renders. The functional equivalent is React.memo, optionally with a custom comparator.
React interview practice: Replicate shouldComponentUpdate with React.memo and custom comparison.
Class components use shouldComponentUpdate(nextProps, nextState) to skip re-renders. The functional equivalent is React.memo, optionally with a custom comparator.