~/talk

What the v…DOM?

Talkat FrontEnd Con 2018 · 2018-12-04..12-05· [javascript, frontend-architecture]
slides:none on file

Explains how JSX becomes function calls via Babel AST transforms, shows a hand‑rolled vDOM: an h() factory, renderNode, component class handling setState and a diff step, all implemented in about 130 lines of code and working end‑to‑end. Compares libraries (preact as a tiny 8 KB option), demonstrates alternatives like lit-html where static vs dynamic parts avoid diffing, and shows which parts actually cost DOM work and how to reduce it.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:19React’s virtual DOM origins
  3. 5:12Code transforms and ASTs
  4. 10:54JSX and virtual DOM
  5. 15:43Building a virtual DOM
  6. 20:43Components and state
  7. 24:38Diffing and rendering
  8. 28:15Benefits and trade-offs
  9. 29:44Future approaches like lit HTML
  10. 32:10Closing and Q&A
~/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.