How State Works in ReactJS?

 Posted by Rajnilari2015 on 12/7/2015 | Category: JavaScript Interview questions | Views: 1863 | Points: 40

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 

Comments or Responses

Login to post response