1
ReactBeginner#lists
React builds a lightweight tree describing the UI, compares the new tree against the previous one, and applies the minimal set of real DOM operations. Keys and element types drive whether a node is reused or recreated.
// changing only the text <li>Old</li> -> <li>New</li> // React updates the text node only, not the <li>