The way React works is by comparing the previous state of the DOM with the new state of the DOM and then updating the DOM to match the new state. This process is called reconciliation.
Reconciliation is the diffing algorithm that React uses to compare the previous state of the DOM with the new state of the DOM and then updating the DOM to match the new state.