…p: As an alternative to implementing
shouldComponentUpdate() manually, I could inherit from React’s
PureComponent instead of
Component. This would compare all props using strict equality (
===) and rerender only if…
…at means 7*11*3 = 231 components rerended. When only the
currentSort changes, it’s a waste of time. Even though React doesn’t update the real DOM if the rerendered VirtualDom is unchanged, it takes about 500ms to process all the components.