You can use shouldComponentUpdate(). When you return false
it will not update the component.
shouldCompnentUpdate(nextprops,nextstate){
return Boolean(this.state.Component)
}
You can use shouldComponentUpdate(). When you return false
it will not update the component.
shouldCompnentUpdate(nextprops,nextstate){
return Boolean(this.state.Component)
}