~/talk

Why React Hooks and How Did We Even Get Here?

Talkat RVA JavaScript Conf 2019 · on Friday, 2019-11-15· [react]
links:none on file
slides:none on file

Builds an Intercom-like widget that fetches past messages, subscribes to new ones, and updates the document title, then reimplements it with useState/useEffect and three composable custom hooks (useNewMessages, useMessages, useTemporaryDocumentTitle) to show behavior colocation and cleaner code. Explains concrete replacements for mixins, HOCs and render props, and shows when to use useRef, useReducer, useContext, useMemo and useCallback. Covers experimental concurrent-mode helpers like useTransition and useDeferredValue, and demonstrates they work to defer heavy renders and reduce UI jank.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:02Building the Intercom component
  3. 2:26Class-based component challenges
  4. 4:12Mix-ins and higher-order components
  5. 6:59Render props and their issues
  6. 8:42Why React Hooks were introduced
  7. 9:04useState: Simplifying component state
  8. 9:24useEffect: Managing side effects
  9. 11:50Custom hooks and encapsulation
  10. 13:15Other essential hooks overview
  11. 18:33Future: Concurrent mode and hooks
  12. 23:28Q&A: Hooks timeline and adoption
~/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.