~/talk

Beautiful Abstractions "What I Learned Reading the Source-Code of 18 React Libraries"

Talkat ReactNext 2018 · on Sunday, 2018-11-04· [react]

Reads the source of 18 React libraries and reports concrete takeaways: a reusable four-part pattern (initialize state, add listener, remove listener, setState) appears across utilities from a 33-line react-network to React Router (rewritten as a cheap-router using the history library and Context), decorators for analytics via react-tracking, and styling via styled-components using tagged template literals. Examples reconstruct small working components, show which APIs and hacks actually ship, and demonstrate headless components and when DOM injection or environment checks are required.

AI-written summary · about

  1. 0:00Start
  2. 1:34Iceberg Diagram
  3. 3:45React Network
  4. 5:00The Code of React Network
  5. 7:53Headless Components
  6. 12:24Contacts Api
  7. 14:17React Tracking
  8. 18:33Start Components
~/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.