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

Function onSubmit

examples/V7/basic.tsx:7–9  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

5export default function App() {
6 const { register, handleSubmit } = useForm();
7 const onSubmit = (data) => {
8 alert(JSON.stringify(data));
9 };
10
11 return (
12 <div className="App">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected