Q. What is the difference between React.Component and React.PureComponent?
β
Correct Answer: (A)
PureComponent implements shouldComponentUpdate with a shallow prop and state comparison
Explanation: PureComponent avoids re-renders if props/state do not change shallowly.