~/talk

React's Architecture

Talkat OSCON 2014 · 2014-07-20..07-24· [react, javascript]
slides:none on file

React claims a lightweight virtual DOM of JS objects that diffs two trees and emits real DOM mutations, turning a naive O(n^3) tree diff into near O(n) work by restricting matching to children and using a key attribute backed by a hashmap to preserve node state. It batches setState calls to avoid repeated reflows, reuses DOM nodes to keep hidden state like scroll and selection, provides shouldComponentUpdate pruning and a perf tool that pinpoints wasted renders, and reports production use and billion‑user scale.

AI-written summary · about

  1. 0:00React
  2. 0:38String Concatenation - 2004
  3. 3:57Custom Tags
  4. 7:48Naive
  5. 9:53Reuse Nodes
  6. 11:22Old School
  7. 14:40Children by Children
  8. 15:49Identity
  9. 21:11Virtual DOM
  10. 26:41Batching
  11. 28:23Subtree Re-rendering
  12. 30:58shouldComponentUpdate?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.