+1 vote
in Redux by
What is Action?

1 Answer

0 votes
by
Actions are plain JavaScript objects and they must have a type property to indicate the type of action to be carried out. They must also have a payload that contains the information that should be worked on by the action.

Actions are dispatch using store.dispatch() method.

{

  type: [TYPE],

  payload: [DATA]

}

Related questions

0 votes
asked Aug 28, 2022 in Redux by john ganales
0 votes
0 votes
asked Aug 28, 2022 in Redux by john ganales
...