Home / Report Question

Q. What is the difference between React.Component and React.PureComponent?
  • A. PureComponent implements shouldComponentUpdate with a shallow prop and state comparison
  • B. Component is only for functional components
  • C. PureComponent cannot have state
  • D. Component automatically memoizes