1.

What is an action in Redux?

Answer»

Actions are the plain JavaScript objects which contain a type field. ACTION can be considered as an event that can describe something that has HAPPENED in the application.

Always remember actions should contain a small amount of information that is needed to mention what has happened.

Also READ: Next js Interview QuestionsExample

const addTodoAction = {
      type: 'ADD',
      payload: 'Buy-milk'
}



Discussion

No Comment Found