DEV Community

Discussion on: Understanding Rendering in React ♻ ⚛️

Collapse
 
aralroca profile image
Aral Roca

I have the doubt if the new Virtual DOM is created after or before re-rendering. According to the order of the processes it seems that first is the Virtual DOM and then the re-render, but I always thought it was the other way around, because how do you know what new elements the new Virtual DOM will have without doing the re-render? Thank you.