~/talk

Why we’ll all use React Hooks

Talkat FrontEnd Con 2018 · 2018-12-04..12-05· [react]
links:none on file
slides:none on file

Explains that React Hooks (alpha available) let function components replace class state and lifecycle with specific APIs like useState (multiple independent states, lazy initializer), useEffect (subscribe and return cleanup, dependency array to avoid unnecessary resubscribe) and useContext. Shows a concrete refactor: friend availability subscription that previously split logic across componentDidMount/componentDidUpdate becomes one effect with unsubscribe that reruns only when friendId changes. Hooks require call order, lint rules enforce it, and remain 100% backward compatible.

AI-written summary · about

  1. 0:00Introduction to React Hooks
  2. 6:20Problems with React classes
  3. 12:30What are React Hooks?
  4. 14:15State hook explained
  5. 19:22Effect hook and side effects
  6. 24:01Context hook and cleanup
  7. 26:54Rules for using Hooks
  8. 28:42Custom hooks and examples
  9. 30:08Summary and future of 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.