~/talk

Advanced patterns in building React Components

Talkat ReactJS Day 2018 · on Friday, 2018-10-05· [react, frontend-architecture]
slides:none on file

Shows concrete patterns and working tradeoffs: Context API based flexible compound components fix the “extra div breaks children” bug by giving each child its own context; prop-gators let a parent merge supplied handlers with internal defaults so overrides don’t require manual extraction; a state reducer pattern models state updates like Redux so multiple reducers and UI/logic separation work cleanly; render-props avoid HOC prop collisions; a demo repo and CodeSandbox examples run; using function form of setState and the why-did-you-update tool prevents stale state and noisy re-renders.

AI-written summary · about

  1. 0:00Start
  2. 8:31FLEXIBLE COMPOUND COMPONENTS
  3. 9:01BETTER VERSION OF COMPOUND COMPONENTS
  4. 14:51ADVANTAGE
  5. 22:35THE PROVIDER PATTERN
  6. 22:46Prop Drilling
  7. 24:05BEST PRACTICES
  8. 30:18Runtime type checking with props
~/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.