React.memo() is a higher component that serves a similar purpose as PureComponent - to prevent the wrapped component from re-rendering unless its props change. If your component re-renders, its children will re-render, too. That's why it's important to consider where using memo() makes sense.
Reactive count: 1
Re-rendering child component
Static child component
  • I re-render even though I receive no props
  • I will not re-render because I am wrapped in memo()