type Updater<T> = (prev) => T | T;
Defined in: types.ts:9
Type-safe updater that can be either a function or direct value
• T