Put in order · JavaScript and React course · Module 4: Context API and useReducer
Action Object Structure
Arrange the correct structure of an action object in useReducer:
Items to put in order
- type:
- payload:
- {
- 'ADD_ITEM',
- newItem }
You can check the correct answer by solving this task in the CodeWorlds game.