What is Action  - SSTTEK Academy

Action 

Action is a JavaScript object used to change the state in Redux architecture. Redux manages the application’s state in a single JavaScript object, which is stored within a structure called the store. Changing the state is triggered by a specific structure called an action. 

An action can contain a type (type) as a string and optionally additional data (payload). Actions are sent to reducer functions used to update the Redux store’s state. Reducers update the state based on the action’s type. 

Actions are typically created by functions called action creators. Action creators are functions that return action objects and often trigger a specific event within the application. 

Redux allows the modification of the application state through actions, enabling centralized management and tracking of the application state. This makes the application more predictable, testable, and manageable. 

SSTTEK Academy
SSTTEK Academy