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());
Dispatch the LOGIN action to the Redux store by calling the dispatch method, and pass in the action created by loginAction()
.
store.dispatch(loginAction());