I've just learned about React.memo()
and was wondering, when would we NOT want that behavior? Wouldn't we always want components to only re-render if their props have been changed?
↧
Why aren't all React components wrapped with React.memo() by default?
↧