freeCodeCamp Challenge Guide: Dispatch an Action Event

Dispatch an Action Event


Problem Explanation

Dispatch the LOGIN action to the Redux store by calling the dispatch method, and pass in the action created by loginAction().


Solutions

Solution 1 (Click to Show/Hide)
store.dispatch(loginAction());
1 Like