Practice
The Virtual DOM works in three simple steps.
Whenever any underlying data changes, the entire UI is re-rendered in the Virtual DOM representation. 
Then the difference between the previous DOM representation and the new one is computed. 
Once the calculations are done, the real DOM is updated with only the things that actually changed. 
Comments