Readings
- Kent's Should I
useState
oruseReducer
? - Kent's How to implement
useState
withuseReducer
useTypescript
— A Complete Guide to React Hooks and TypeScript by Trey Huffine- Kent's When to
useMemo
anduseCallback
- Memoization and React
- What the Fork is Closure
- Lifting state up
- Michael Jackson Tweet: Composition
- Kent's
useEffect
vsuseLayoutEffect
- React docs: hook reference
- [ESLint] Feedback for 'exhaustive-deps' lint rule #14920
- Gupta Garuda: React Hooks - Understanding Component Re-renders
- StackOverFlow: When to use
useImperativeHandle
streamich/react-use
- Gabe Ragland:
useHooks
Etc
- How to do lazy initialization with
useReducer
anduseState
- Abortable fetch
- Is
setState
fromuseState
anddispatch
fromuseReducer
guaranteed to be stable? What does that mean? - What does it mean when the React docs say: "You may rely on
useMemo
as a performance optimization, not as a semantic guarantee." - How does
Object.is
comparison algorithm work? - Why does the React docs says "we recommend starting with
useEffect
first and only tryinguseLayoutEffect
if that causes a problem"?