Redux Toolkit / React Redux

dispatch

Sends an action through the store dispatch chain.

Formal Syntax & Structure

react syntaxreact
store.dispatch({type:"cart/cleared"})

Working Example

Example Snippetreact
store.dispatch({type:"cart/cleared"})
React Reference