StuntCoders interview question

How does the virtual DOM work?