Skip to main content

Dispatch

type

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

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

Import

import { Dispatch } from '@modular/sdk/editor';