type
SetState
export type SetState<S> = S | ((previous: S) => S);The setter shape useState hands back.
API reference
React, re-exported by name with its Flow types, for the Unified Toolchain for Flow.
Written from the source by uf doc when this site was built: the signature and the comment above each export, grouped by the specifier a program imports it from.
@uniflowed/reactRe-exports everything from react.
type
SetStateexport type SetState<S> = S | ((previous: S) => S);The setter shape useState hands back.