Examining the Actions in the Application
We will define the actions for the three buttons in our Hello World app.
As earlier explained, whenever there’s an intent to update the application state, an action must be dispatched.
Whether that intent is initiated by a user click, or a timeout event or even an Ajax request, the rule remains the same. You have to dispatch an action.
The same goes for this application.
Since we intend to update the state of the application, whenever any of the buttons is clicked, we must dispatch an action.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy