#Hooks

1 posts

TypeScript + React in Practice #3: Typing hooks
4 min read

TypeScript + React in Practice #3: Typing hooks

How far to leave types to inference and when to be explicit for built-in hooks — useState, useReducer, useRef, useCallback, and useMemo.