~/talk

Hooks, HOCS, and Tradeoffs (⚡️)

Talkat React Boston 2019 · 2019-09-21..09-22· [react, frontend-architecture]
slides:none on file

React-Redux ships a hooks API in version 7.1 with useSelector for state and useDispatch instead of bound action creators, which makes components smaller but couples them to context and requires react.memo to regain connect’s automatic render optimizations. connect remains an HOC that avoids unnecessary rerenders and keeps components unaware of Redux, while hooks make local async dispatching easier (so thunks are less mandatory). Redux Starter Kit adds configureStore and createSlice to simplify setup and reducers.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07History of Code Reuse
  3. 6:57Hooks Questions
  4. 8:23Hooks New Features
  5. 9:15Hooks vs HOCS
  6. 11:33React Redux
  7. 13:10Dan Abramov
  8. 14:30Hooks
  9. 17:48Tradeoffs
  10. 20:37Redux Starter Kit
~/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.