Click in order · React Native course · Module 4: State and API data
useReducer dispatch
Click the elements that create an action for useReducer:
Items to click
- dispatch({
- payload: item
- 'ADD_ITEM',
- type:
- })
You can check the correct answer by solving this task in the CodeWorlds game.