What is the point of shouldComponentUpdate() method?

Technology CommunityCategory: ReactWhat is the point of shouldComponentUpdate() method?
VietMX Staff asked 3 years ago

It’s used for performance reasons, for example if the implementor of a component knows for sure that a particular property change does not necessitate a re-render, they could return false from this method and skip the re-render.