Reactjs life cycle: call while only change state -
in below image have react life cycle methods. there other method call when change state ?
here shouldcomponentupdate & comonentwillupdate both call in case of changes props , state.
thank in advance !!!
no lifecycle methods exist, can use existing shouldcomponentupdate , componentwillupdate hooks , wrap state change logic in check make sure previousstate !== this.state

Comments
Post a Comment