Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

componentwillreceiveprops for functional component

useEffect(() => {
  console.log('someProp updated');
}, [props.someProp])
 
PREVIOUS NEXT
Tagged: #componentwillreceiveprops #functional #component
ADD COMMENT
Topic
Name
9+5 =