0 votes
in ReactJS by

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
asked Nov 26, 2019 in ReactJS by AdilsonLima
0 votes
asked Jul 2, 2019 in ReactJS by Venkatshastri
0 votes
0 votes
asked May 21, 2020 in ReactJS by GeorgeBell
...