When React updated dom in browser?
The first time
render methods, in this time, document.getElementById
show null
The second time updated,
document.getElementById
get new DOM
I expected it should get old DOM, but document.getElementById
get new
one.
In lifecycles diagram, it show React updates DOM after render, so I think
document.getElementById
should take old dom.