Patterns
Reducer action
An event description supplied to dispatch; object shape and action type are application conventions.
Formal Syntax & Structure
react syntaxreact
{type: "eventName", payload: value}Working Example
Example Snippetreact
dispatch({type: "guestRenamed", name: "Alex"});