• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in React JS by
Q:

How React works?

1 Answer

0 votes
by

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.

Related questions

0 votes
0 votes
asked Jul 2, 2019 in React JS by Venkatshastri
0 votes
0 votes
asked May 21, 2020 in React JS by GeorgeBell
...