committed by
Quincy Larson
parent
fbb9378ba6
commit
7c38b2c89b
@ -165,7 +165,7 @@
|
||||
"title": "Dispatch an Action Event",
|
||||
"releasedOn": "December 25, 2017",
|
||||
"description": [
|
||||
"od is what you use to dispatch actions to the Redux store. Calling <code>store.dispatch()</code> and passing the value returned from an action creator sends an action back to the store.",
|
||||
"<code>dispatch</code> method is what you use to dispatch actions to the Redux store. Calling <code>store.dispatch()</code> and passing the value returned from an action creator sends an action back to the store.",
|
||||
"Recall that action creators return an object with a type property that specifies the action that has occurred. Then the method dispatches an action object to the Redux store. Based on the previous challenge's example, the following lines are equivalent, and both dispatch the action of type <code>LOGIN</code>:",
|
||||
"<blockquote>store.dispatch(actionCreator());<br>store.dispatch({ type: 'LOGIN' });</blockquote>",
|
||||
"<hr>",
|
||||
|
Reference in New Issue
Block a user