Problem Statement
What is the difference between React.Component and React.PureComponent?
Explanation
PureComponent helps prevent unnecessary updates by checking whether props or state have actually changed.
It’s useful for class components where performance is important, similar to React.memo for functional ones.
Practice Sets
This question appears in the following practice sets: