~/talk

The how's and why's of flexible React components

Talkat RuhrJS 2018 · on Sunday, 2018-10-14· [component-design, react]
slides:none on file

Refactor of the class pass schedule CTA reduces fragility: a tangled component with embedded rules and 14 props becomes an API that takes a single type prop, implemented with a tiny base plus separate CTA components, cutting from 14 props to 4, enabling isolated tests, per-CTA behavior and simpler A/B changes. Business logic moves to plain functions and optional render props so rendering stays declarative and low-magic.

AI-written summary · about

  1. 0:00Start
  2. 2:00Tooltip
  3. 7:16Is this Component Flexible
  4. 10:08Putting Business Logic in Your Components
  5. 11:55Schedule Cta
  6. 15:38Children Prop
  7. 23:22Render Props Pattern
  8. 25:39Downshift Library
  9. 27:01Know Your Traps
~/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.