Overview of the Fiber Architecture
Fiber is a scheduling strategy designed to solve the problem of JavaScript blocking the browser's main thread (GUI rendering and JS execution are mutually exclusive). By breaking the reconciliation process into small units of work, React can yield control back to the browser every 16.6ms to handle high-priority tasks (like user input or animations), preventing the page from appearing "frozen."
React's architecture is split into three main modules:
- Scheduler: Schedules when updates should happen.
- Reconciler: Determines which components need updating (the CPU-intensive part that Fiber makes interruptible).
- Renderer: Applies the updates to the actual DOM/view.