~/talk

Rewriting Facebook Comments Plugin With React and Flux

Talkat Falsy Values 2015 · 2015-10-12..10-13· [react, frontend-architecture]
slides:none on file

Rewrites Facebook’s third‑party Comments plugin and its moderation tool from the ground up using React, Flux, Flow, ES6, replaces JSX compilation with Babel, and adopts React 0.14/ReactDOM. Architecture uses component decomposition, unidirectional Flux stores, and optimistic updates to show new comments before server confirmation; Flow static annotations plus dev-only runtime checks catch type errors. Demoed working client-side rendering, server-side/React Native compatibility, and a team-wide migration that reduced boilerplate and stabilized the codebase.

AI-written summary · about

  1. 0:00Intro
  2. 1:44Table hell
  3. 2:05and a link
  4. 4:41Synthetic events
  5. 5:45Virtual DOM ++
  6. 7:02Component v.0.14
  7. 7:29Another component
  8. 8:23Using JSX
  9. 9:07JSX-to-JS transform
  10. 9:31Transforms in 0.14
  11. 10:21JSX tools
  12. 13:01Stateless functional
  13. 14:13Revealing the magic
  14. 14:25Stateful
  15. 16:10Event handler
  16. 16:54State vs props
  17. 20:43How components talk
  18. 21:02Flux
  19. 22:21Store
  20. 22:34Actions
  21. 22:49Main app component
  22. 23:18Pure render mixin
  23. 23:43Impure render function
  24. 24:12Perf win
  25. 25:48Flow: custom types
  26. 26:01Flow: import types
  27. 26:13Runtime checks
  28. 27:05Dependencies
  29. 27:19ES6 Destructuring Assignment
  30. 27:34Arrow functions
  31. 27:50Object short notation
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.