arrow_backBACK TO DRILLS
Blue BeltnextjslockPREMIUM

useActionState Required to Return Data From a Server Action

A Server Action performs validation and needs to report a specific error message back to the client component that invoked it. Why can't the action simply return that message like a normal function return value?

lock

This Drill is Locked

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