Type Alias Dispatch<A>

Dispatch: (value: A) => void

A function that can be used to update the state of a useState or useReducer hook.

Type Parameters

  • A

Type declaration

    • (value: A): void
    • Parameters

      • value: A

      Returns void