Type alias SetStateAction<T>

SetStateAction<T>: T | ((oldState: T) => T | Promise<T>)

New state to set to a channel, or a callback function that will produce the new state

Type Parameters

Generated using TypeDoc