Quantcast
Viewing all articles
Browse latest Browse all 2

Answer by Maheer Ali for React/Preact: how to temporarily avoid updating the DOM for a certain component?

You can use shouldComponentUpdate(). When you return false it will not update the component.

shouldCompnentUpdate(nextprops,nextstate){
    return Boolean(this.state.Component)
}

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>