~/talk

React hooks: the good, the bad and the ugly

Talkat BlaBlaConf 2022 · 2022-12-19..12-23· [react, frontend-architecture]
slides:none on file

Covers practical tradeoffs: when hooks simplify code and when they create spaghetti state and tangled effects, with concrete patterns like custom hooks for reuse, useReducer for complex state, and useMemo/useCallback to avoid needless renders. Shows common bugs — stale closures and missing effect dependencies — and recommends using the ESLint hooks rules, isolating side effects, and keeping hooks small and pure. Demo refactors a class-based example into hooks and contrasts behavior and complexity.

AI-written summary · about

  1. 0:00Introduction
  2. 1:11What are React Hooks
  3. 4:57Class components vs Hooks
  4. 8:58How to use Hooks effectively
  5. 12:54Performance benefits of Hooks
  6. 16:43Conclusion
~/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.