Mark the DOM nodes React touches at commit, on the lantern boards of Pak Yusuf's bakery: 14 levels of reconciliation, keys and render bailouts.
When state changes, React calls its components again (render) and gets a new tree. It then compares the new tree with the old one, and at commit touches only the DOM nodes that differ: it creates the new ones, removes the ones gone, moves the ones whose key moved, and writes the attributes or text that changed. A component has no DOM node of its own.
A key is the name React uses to pair old children with new ones. If the key is a position number, inserting at the front makes every number point at different content: React takes the boards for the same ones and writes their content again, one by one.
A component is a function that returns elements. It does not show up in the DOM itself: only the elements and text it returns go into the DOM. So when a component mounts, React creates DOM nodes for its content, not for the component.