Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react prevent component from update once mounted

const Greeting = React.memo(props => {
  console.log("Greeting Comp render");
  return <h1>Hi {props.name}!</h1>;
});
 
PREVIOUS NEXT
Tagged: #react #prevent #component #update #mounted
ADD COMMENT
Topic
Name
1+1 =