9 ms·
You can just use PureComponent instead of implementing shouldComponentUpdate, but you're right that it doesn't come "for free". PureComponent : class component
by dandelany 5y ago
You can just use PureComponent instead of implementing shouldComponentUpdate, but you're right that it doesn't come "for free".
PureComponent : class components :: memo : function components