In my React Native component, I added an empty shouldComponentUpdate
shouldComponentUpdate(nextProps, nextState) {
}
I know from this answer that having an empty shouldComponentUpdate results in eliminating all unnecessary re-renders. If I return true in the body of shouldComponentUpdate though, will that be identical to removing shouldComponentUpdate?
The default implementation of the method returns
truewhich means in your case removing theshouldComponentUpdatewill result in the same behavior.https://reactjs.org/docs/optimizing-performance.html#shouldcomponentupdate-in-action