Hooks

Reducer dispatch

Queue an action for reducer processing; the function does not return the next state or change the current render snapshot.

Formal Syntax & Structure

react syntaxreact
dispatch(action);

Working Example

Example Snippetreact
dispatch({type: "reserved"});
React Reference