shouldcomponentupdate(nextprops nextstate) code example
Example: shouldcomponentupdate default return
By default, shouldComponentUpdate returns true, but you can override it to return false for cases that you do not want a re-render.
By default, shouldComponentUpdate returns true, but you can override it to return false for cases that you do not want a re-render.