State Management · Junior · Question 31 of 75

What is an action in Redux?

Explanation

{ type: 'todos/added', payload: { id, text } }. Action creators from createSlice build such objects. Async logic (thunks) dispatches plain actions when data arrives.

Further reading

Problem with a question

State Management · Junior · question 31

Test yourself

Take the State Management · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz