I have read lots of articles and believe this question is not the duplicated one.
According to What is the role of the render() function inside react component?
render function is part of the react component lifecyle where ReactDOM is the class object which exposes a method called render which is used to render the React JSX content into your DOM.
and I also read many articles which explain how the react virtual dom works, which uses diff process before render its node to the real-dom.
All the articles (at least what I've read) mention that render() reflects dom
I wonder if that dom
is real-dom
or virtual-dom
Actually I am having some trouble understanding componentDidUpdate()
which is immediately invoked after render()
, realizing my lack of understanding of component's render
function
appreciate for your help