State Management · Junior · Question 31 of 75
What is an action in Redux?
- ✓Correct answer: A plain object with a
typefield describing what happened - 2A function that directly modifies the store
- 3A React component that renders a button
Explanation
{ type: 'todos/added', payload: { id, text } }. Action creators from createSlice build such objects. Async logic (thunks) dispatches plain actions when data arrives.