~/talk

React's Future - Under the Hook

Talkat DevDays Europe 2019 · 2019-05-14..05-16· [react, frontend-architecture]
slides:none on file

Rebuilds a time‑tracking app with React 16.8 hooks, showing concrete code: uses useState/useEffect/useMemo/useRef to replace class state and lifecycle, demos a toy implementation of useState to explain hook ordering, surfaces the stale state pitfall from effect closures and fixes it with a ref, extracts a custom useInterval hook for reuse, and runs the refactored app live so the interval logic and fixes actually work.

AI-written summary · about

  1. 0:00Intro
  2. 2:33Demo
  3. 4:45State
  4. 6:15How does it work
  5. 7:00Lets build it ourselves
  6. 11:20React State
  7. 12:30Refactor Home Component
  8. 13:29Set Items
  9. 14:40Separation of Concern
  10. 15:54Computed State
  11. 18:19Computed Property
  12. 21:38Use Cases
  13. 23:03Use Effects
  14. 25:17Repassing
  15. 27:02Testing
  16. 30:00Intervals
  17. 32:31Hooks
  18. 37:26Custom Hooks
~/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.