Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

StateUpdater

type StateUpdater<S> = (value: S | ((prevState: S) => S)) => void;

§Type Parameters

§Type

§
(value: S | ((prevState: S) => S)) => void
[src]