Actions

Pascual Vila
Frontend Instructor.
Actions are objects that describe what happened in the application and what changes should be made to the state. They have a type property that is an identifier for the action and can have other data related to that action.
Example of an action:
{`const incrementAction = { type: "INCREMENT" };
const decrementAction = { type: "DECREMENT" };`}