React Tldr; Use React.memo() wisely

maniekm profile image Mariusz Updated on ・1 min read

Use React.memo() when:

  • You want to mimic PureComponent in function components.
  • Your component renders often
  • Your component is usually provided with the same props during re-rendering
  • Your component contains a decent amount of UI elements to reason props equally check

Source: https://dmitripavlutin.com/use-react-memo-wisely/


markdown guide