• 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

React creates a virtual DOM. When state changes in a component it firstly runs a “diffing” algorithm, which identifies what has changed in the virtual DOM. The second step is reconciliation, where it updates the DOM with the results of diff.

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
...