~/talk

Unleash the power of the higher-order components

Talkat OdessaJS 2018 · on Saturday, 2018-07-07· [react, component-design]

A concrete recipe for extracting UI from behavior: convert a combined list component into a small presentational renderer plus composable HOCs, implemented both as handwritten HOCs and with the recompose helpers withTransformProps, branch, withState and withHandlers. The composition uses compose to layer logic, a condition that treats arrays of two or fewer items as a warning, and cached handlers so toggle callbacks are not recreated; the result is reusable components and working enhancements.

AI-written summary · about

  1. 0:00Start
  2. 1:19Who Programs in React
  3. 2:09Agenda
  4. 12:02Making Components Reusable
  5. 12:48Make Our Higher-Order Component Reusable
  6. 18:57Example of Functional Composition
  7. 19:42Composition of Higher-Order Components
  8. 20:20Conditioned List
  9. 24:56Functional Programming Composer
  10. 28:26Predefined Higher-Order Components
  11. 36:05Higher-Order Components for Data Fetching
~/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.