Dispatch<A>: ((value) => void)

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

Type Parameters

  • A

Type declaration

    • (value): void
    • Parameters

      • value: A

      Returns void