~/talk

Typed HOCs with Flow

Talkat ReactiveConf 2018 · 2018-10-29..10-31· [react, typescript]
slides:none on file

Shows how to type real React higher‑order components with Flow so the HOC returns a correctly typed enhanced component, using withData and withRandom examples that fetch and inject props, generics to infer P, and an exported hoc helper type. Demonstrates class and function component compatibility, object spread for prop merging, and that type inference removes duplicated prop declarations. Concrete examples compile and type‑check so the pattern actually works in practice.

AI-written summary · about

  1. 0:00Intro
  2. 7:35Flow
  3. 11:27Component
  4. 14:35Lucky Number
  5. 20:18HOC Helper
  6. 21:59Wrapup
~/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.