arrow_backBACK TO DRILLS
Blue BeltnextjsPREMIUM
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?