█
LastWrite
  • > Curriculum
  • > Pricing
  • > For Educators
  • > About
  • > Contact
Log InGet Started

Questions, concerns, bug reports, or suggestions? We read every message, write to us at [email protected].

More ways to reach us →
LastWrite

Structured computer science lessons for aspiring developers and security professionals.

[email protected]

(201) 785-7951

Mon–Fri, 9 AM–5 PM EST

Learn

  • Curriculum
  • Pricing

Company

  • About
  • For Educators & Schools
  • Contact Us

Legal

  • Terms of Service
  • Privacy Policy
© 2026 LastWrite. All rights reserved.
Curriculum/Programming Languages/React (Standalone Deep Dive)/React Rendering Model
40 minIntermediate

React Rendering Model

After this lesson, you will be able to: Understand React's rendering model: virtual DOM, reconciliation, fiber.

Most React bugs come from misunderstanding when components re-render. This lesson is the foundation.

This is a free introductory lesson. No purchase required.

Virtual DOM in one paragraph

React keeps an in-memory tree of UI elements (the Virtual DOM). On state change, it builds a new tree, diffs against the old, and applies the minimum DOM changes. Result: declarative UI (you describe what; React figures out how) with reasonable performance.

Reconciliation rules

Different element types (div → span) = full subtree rebuild. Same type = compare props, recurse into children. Lists need `key` props so React matches items across renders. Without key, React assumes index-based matching and bugs follow.

Fiber (conceptually)

Fiber is React 16's rewrite of the reconciler, splits work into small units that can be paused and resumed. Enables Concurrent Mode features: useTransition, useDeferredValue, Suspense for data, automatic batching. You won't touch Fiber directly; understanding it explains why hooks behave the way they do.

💡 The render mental model

A component re-renders when: its state changes, its props change, its parent re-renders, OR it consumes a changed context. When stuck on a perf or stale-state bug, ask 'when does this component re-render, and why?'

Quick Check

Why does React require `key` on list items?

Pick the cleanest answer.

Back to React (Standalone Deep Dive)
Hooks in Depth→