arrow_backBACK TO DRILLS
White BeltusereducerlockPREMIUM

useReducer Action Object Shape

Why are reducer actions commonly written as objects like this?

REACT_MODULE // 0x42
dispatch({ type: 'deleted', id: 3 });
lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.