~/talk

Powering Code Reuse with Context and Render Props

Talkat React Day Berlin 2018 · on Friday, 2018-11-30· [react]
slides:none on file

Claims that the new Context API plus render props (and now hooks) let components share lifecycle and state without prop drilling, and shows concrete code: a timer refactor into a useNow custom hook using useState and useEffect with an interval parameter, a render‑prop/children pattern that swaps formatting, and a Toggle context provider plus synced buttons. Examples use React with TypeScript/Flow mentioned, server‑side rendering compatibility is preserved, and the built components run and clean up timers correctly.

AI-written summary · about

  1. 0:00Code Reuse
  2. 7:18Children
  3. 8:06Hooks
  4. 11:51State
  5. 15:48Provider
  6. 19:00Summary
~/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.