~/talk

Powering Code Reuse with Context and Render Props

Talkat React Alicante 2018 · on Saturday, 2018-09-15· [react, developer-experience]

Explains concrete patterns and tradeoffs: a reusable Now component that starts/clears a timer and updates every 100 milliseconds, swapping boolean flags for a render prop (and using children) to return strings or JSX, then moving into the new Context API created by React 16 with a createContext provider/consumer pair, a theme example (blue/red/white circles) and a toggle example where multiple buttons share a single on/off state and updater so all toggle together; includes TypeScript/Flow compatibility notes and a Slideshare link.

AI-written summary · about

  1. 0:00Introduction
  2. 0:18Functions
  3. 3:03React Properties
  4. 9:32Children
  5. 10:40State
  6. 11:45Local State
  7. 15:28Context
  8. 18:23Updating State
  9. 20:30Summary
~/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.