Skip to content

SetStateAction

SetStateAction<S> = S | (previousValue) => S

Defined in: react/src/useClientDocument.ts:168

A state update that can be either a full value or a function returning a full value. Mirrors React’s SetStateAction type.

S

The state type