BharatLogic interview question

Difference between Class and functional components Virtual Dom