~/talk

Best Practices for reusable UI components

Talkat Nordic.js 2017 · 2017-09-07..09-08· [component-design, react, developer-experience]
slides:none on file

Advocates building reusable UI components in React that are self-sufficient: they accept data as props, keep interaction in internal state, and notify parents via explicit callbacks instead of spread backdoors. A real example is Netflix’s back‑of‑the‑box component Bob, implemented with JSX, prop validation and documentation via prop types and gulp‑react‑docs. Teams at Admiral and AdRoll consolidate duplicates into a shared library, keeping components 100% size‑aware and easy to drop into different frameworks.

AI-written summary · about

  1. 0:00Start
  2. 10:10Self-sufficiency: Don't worry about data.
  3. 10:58Self-sufficiency: Enough state to be useful
  4. 14:37Ease of integration: Self-documentation.
  5. 16:47Ease of integration: Fewer props.
  6. 19:41Ease of integration: Remove backdoors.
  7. 21:17Ease of integration: Fill container element.
~/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.