Problemunvalidated

is the real DOM or the virtual DOM created first? — When a React app is rendered for the first time. Tension: React with JSX is converted to React.createElement(). So, does virtual DOM creation start from here and then, based on virtual DOM, the real DOM is generated? Outcome: React creates a virtual DOM tree, stores the result in memory, and then React compares the current virtual DOM to the previous virtual DOM.

6bb87bc2-e701-49c1-a43b-6698def58c80

is the real DOM or the virtual DOM created first? — When a React app is rendered for the first time. Tension: React with JSX is converted to React.createElement(). So, does virtual DOM creation start from here and then, based on virtual DOM, the real DOM is generated? Outcome: React creates a virtual DOM tree, stores the result in memory, and then React compares the current virtual DOM to the previous virtual DOM.