Files
freeCodeCamp/guide/english/certifications/front-end-libraries/redux/dispatch-an-action-event/index.md

20 lines
357 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Dispatch an Action Event
---
# Dispatch an Action Event
2018-10-12 15:37:13 -04:00
---
## Problem Explanation
2018-10-12 15:37:13 -04:00
Dispatch the LOGIN action to the Redux store by calling the dispatch method, and pass in the action created by `loginAction()`.
---
## Solutions
<details><summary>Solution 1 (Click to Show/Hide)</summary>
```jsx
2018-10-12 15:37:13 -04:00
store.dispatch(loginAction());
```
</details>