2024 09 20 18 DAVID KHOURSHID - useWat
summary
Demonstrates that useState batching makes sequential updates yield unexpected counts, that maps and sets don’t behave well in state without hacks, and that many scattered useState calls compress into a single reducer which makes a toggle with useReducer trivial. Highlights global-state options: useSyncExternalStore and the newly released xate store for evented updates. Notes effects executing twice in Strict Mode, fetch-in-useEffect causing duplicate requests, and server/client component mismatch headaches in current React versions.
AI-written summary · about
chapters (13)
- 0:00React introduction
- 3:01Library vs framework
- 6:55React pitfalls
- 8:39useState weirdness
- 11:53Understanding useContext and its proper use
- 15:08Local vs global state
- 17:58useEffect complexities
- 21:31React 19 SSR
- 24:18useRef purity
- 25:22useMemo & useCallback
- 27:29React Forget features
- 28:13Server Components
- 30:44React future
related talks
24mGoodbye, useState
32mGoodbye, useState
43mWe don’t know how React state hooks work
17mManaging React State: 10 Years of Lessons Learned
43mAdiós, useEffect: Managing Effects More Effectively
24mUsing useEffect Effectively
27mEric Bishard - State Management with React Hooks
45mWhy I am hooked on the future of React
