Study version-tagged reconciler behavior
Read a pinned source version, not a supposed universal engine
For this research exercise use the historical React v19.2.0 source tag, not a deployment recommendation. ReactFiber.js at that tag defines FiberNode with links for parent, first child and sibling, along with props, state and queued work fields. A fiber is an internal work record, not a public React element or necessarily a DOM node. Reconciliation relates newly requested elements to existing work and determines identity and changes. Work-in-progress and committed trees permit calculation without immediately changing visible UI. These are implementation concepts, not a supported field-access API. The source register lists reviewed sections and candidate files for further study.
Identity and reconciliation
// Deliberately limited: unique explicit keys among siblings, same parent.export function compareRows(before, after) { for (const list of [before, after]) { if (new Set(list.map(r=>r.key)).size !== list.length) throw Error('Duplicate key'); } const prior = new Map(before.map(r=>[r.key,r.type])); return after.map(r=>({key:r.key, decision:prior.get(r.key)===r.type ? 'reuse candidate' : 'new identity'}));}The model intentionally excludes unkeyed children, nested parents, fragments, portals, memoization and host moves. A match is a reuse candidate, not an assertion that React performs zero work. With A and B of the same type under the same parent, reordering keeps their identities; changing a key or type changes identity. Keys need only be unique in the relevant sibling set.
import React, {useState} from 'react';function Ticket({label}) { const [note,setNote]=useState(''); return <label>{label}<input value={note} onChange={e=>setNote(e.target.value)}/></label>;}export default function TicketList() { const [reverse,setReverse]=useState(false); const ids=reverse?['B','A']:['A','B']; return <section><button onClick={()=>setReverse(v=>!v)}>Reverse</button> {ids.map(id=><Ticket key={id} label={'Ticket '+id}/>)} </section>;}Type a note into Ticket A, then reverse the order. The note should remain attached to A, not the first position. This public state-preservation behavior is a better assertion than inspecting private fiber pointers. Try changing the key in a disposable copy to see a reset. Keep the parent and component definition stable for the comparison.
Lanes and renderer architecture
// Arbitrary teaching flags, NOT React's lane constants or selection algorithm.export const Immediate=1, Background=2;export const addWork=(pending,work)=>pending|work;export const hasWork=(pending,work)=>(pending&work)===work;export const clearWork=(pending,work)=>pending&~work;A lane represents a category of work; a lane set can be represented with bits. At the pinned tag ReactFiberLane.js contains numeric lane masks including sync, transition and hydration categories. ReactFiberWorkLoop.js accepts a root, fiber and lane when scheduling an update. Real selection depends on root state, eligibility, suspension and other factors. The two flags above deliberately use unrelated values and do not implement priority, starvation prevention or queue rebasing. A renderer maps React work to its host environment; the tagged reconciler README discusses mutable host trees versus persistent replacements. DOM operations are not React Native operations. Custom renderer host contracts can change between releases; do not install react-reconciler into an ordinary application just to inspect them. Practice: find these files at the tag, record the symbol and evidence, and label any observation as implementation-specific.