StateUpdatertype StateUpdater<S> = (value: S | ((prevState: S) => S)) => void;§Type Parameters§S[src]§Type§(value: S | ((prevState: S) => S)) => void[src]