#42·didact

I learned from 'Build Your Own React' and encountered problems in building Fiber

Author: HuangqyeCreated Jul 11, 2022Updated May 5, 2026

in step 4 Fiber, prevSibling.sibling = newFiber;, fiber is the argument and prevSibling is the variable inside the function. How does the sibling come into fiber? Thank you.