Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to stop re rendering in react hooks

f you’re using a React class component you can use the shouldComponentUpdate method or a React.PureComponent class extension to prevent a component from re-rendering. Use React.memo() to prevent re-rendering on React function components.
 
PREVIOUS NEXT
Tagged: #stop #rendering #react #hooks
ADD COMMENT
Topic
Name
6+2 =