PrideLogic interview question

How does virtual dom work in React?