useActionState (trước là useFormState trong React DOM) quản lý state của form action, trả về [state, dispatch, isPending].
- Tích hợp với Server Actions trong Next.js.
- Thay thế pattern thủ công quản lý loading/error state khi submit form.
- Tự động handle pending state và error state từ action.