Answer:
React maintains an initial state of the element and when some Event change it creates the final one. In the Virtual DOM, it only updates that particular DOM element that has been changed by using the DIFF Algorithm. The next time, this changed value becomes the initial one and the same rule follows. The concept is very similar to the Observable Collection often found in MVVM model of WPF.
Asked In: Many Interviews |
Alert Moderator