Nov 26, 2019 in React JS

How React works?

1 Answer

Nov 26, 2019

Below is the sequence of steps which gives an idea about how does react work

  • Firstly the react runs the diffing algorithm to identify the changes that are made in the virtual DOM.
  • Next step is reconciliation, this is used to update the DOM as per the new features.
  • Now, the virtual DOM, which is lightweight in nature and is detached from the specific implementation of the browser.
  • Followingly the ReactElements which are present in virtual DOM are used to build basic nodes.
  • Finally, if the ReactComponent changes the state; the diffing algorithm runs faster and identify the changes. After identification, it automatically updates the DOM with the change difference.
Click here to read more about React JS
Click here to read more about Insurance

Related questions

Jul 2, 2019 in React JS
May 21 in React JS
May 20 in React JS