arrow_backBACK TO DRILLS
White Belt - EasyusereducerPREMIUM
useReducer Action Object Shape
Why are reducer actions commonly written as objects like this?
//REACT_MODULE
dispatch({ type: 'deleted', id: 3 });Why are reducer actions commonly written as objects like this?
dispatch({ type: 'deleted', id: 3 });