Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

difference between w component did update and did mount

componentDidMount() : invoked immediately after a component is mounted (inserted into the DOM tree) 
componentDidUpdate(prevProps, prevState, snapshot) : is invoked immediately after updating occurs.
This method is not called for the initial render.
 
PREVIOUS NEXT
Tagged: #difference #component #update #mount
ADD COMMENT
Topic
Name
5+1 =