Skip to content

Commit 3a53934

Browse files
bloodyowlcknitt
authored andcommitted
Add external for basic support for formAction
1 parent c99755c commit 3a53934

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ReactDOM.res

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ type formStatus<'state> = {
7373
action: React.action<'state, FormData.t>,
7474
}
7575

76+
external formAction: React.formAction<FormData.t> => string = "%identity"
77+
7678
/** `useFormStatus` is a Hook that gives you status information of the last form submission. */
7779
@module("react-dom")
7880
external useFormStatus: unit => formStatus<'state> = "useFormStatus"

0 commit comments

Comments
 (0)