fw-11 step 01 — React, with questions

Goal

Read with specific questions you can answer wrongly. "Read the scheduler" is not a task.

Tasks

Work through these, comparing each against your own implementation:

  1. Why does a Fiber initialise every field in the constructor, even to null? (You know this from bi-05 — confirm it.)
  2. What is a lane, and why lanes rather than a numeric priority?
  3. Where is the double buffer (current / alternate), and what happens to the discarded tree?
  4. What does bailout check, and how does it skip a subtree?
  5. Why do effects have separate passive and layout phases, and when does each run relative to paint?
  6. How is a hydration mismatch detected, and what is recoverable versus fatal?
  7. What does the scheduler use as its host callback, and what changes with scheduler.yield()?

For each: answer the eight gate questions, and classify every difference from your implementation as essential / hardening / accretion with evidence.

Done when

  • Seven questions answered against source
  • Every difference classified, with a commit, issue, or test as evidence
  • Readings logged in the shared learning log