The Diffing Algorithm: DOM Elements Of The Same Type
DOM Elements Of The Same Type
//by comparing these two elements, React knows to only modify the
//className on the underlying DOM node
<div className="before" title="stuff" />
<div className="after" title="stuff" /> When comparing two React DOM elements of the same type, React looks at the attributes of both, keeps the same underlying DOM node, and only updates the changed attributes.
Semantic portal