MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / onSubmit

Function onSubmit

app/src/useFieldArray.tsx:43–45  ·  view source on GitHub ↗
(data: FormValues)

Source from the content-addressed store, hash-verified

41 });
42 const [data, setData] = React.useState<FormValues>();
43 const onSubmit = (data: FormValues) => {
44 setData(data);
45 };
46
47 React.useEffect(() => {
48 setTimeout(() => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected