Health IQ interview question

How does the virtual DOM work in React?