React Core & Hooks (407 Qs)•Part 5: React Redux State Management (101 - 134)
What is an action in Redux?
junior LevelMost AskedCode ExampleState Management
Actions are plain JavaScript objects or payloads of information that send data from your application to your store. They are the only source of information for the store. Actions must have a type property that indicates the type of action being performed.
For example, let's take an action which represents adding a new todo item:
vbnet
{
type: ADD_TODO,
text: 'Add todo item'
}