shouldComponentUpdate

Before Rendering
Determines if the component will be updated or not. By default it returns true.
If you are sure that the component doesn't need to render after state or props are updated, you can return false value.
It is a great place to improve performance as it allows you to prevent a re-render if component receives new prop.



© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext