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

Function onSubmit

examples/V7/parseFormatInputValues.tsx:19–21  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

17export default function App() {
18 const { control, handleSubmit } = useForm();
19 const onSubmit = (data) => {
20 console.log(data);
21 };
22
23 return (
24 <form onSubmit={handleSubmit(onSubmit)}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected