property CommentFormProps.onSubmit

Sends the text. The form empties itself once it resolves. When it throws, as expectOk does, the form keeps the text and shows the error under errorTitle.

Type

(body: string) => Promise<void>

Usage

import { type CommentFormProps } from "src/components/comment/CommentForm.tsx";