Question d’entretien chez Unacademy

How diffing algorithm works in react?