React.memo brings the class
PureComponent behavior to functional components. We’ve also had a look at using the
equalityCheck function as well. If you use the
equalityCheck function, be sure to include checks for function props where applicable. Not doing so is a common source of bugs in many React applications.