react where to update state life cycle methods infinite cycle code example
Example: shouldcomponentupdate
shouldComponentUpdate(nextProps, nextState) {
return true;
}
shouldComponentUpdate(nextProps, nextState) {
return true;
}