MCPcopy
hub / github.com/vercel/next.js / onSubmit

Function onSubmit

examples/with-react-hook-form/pages/index.tsx:24–30  ·  view source on GitHub ↗
({
    username,
    password,
    remember,
  })

Source from the content-addressed store, hash-verified

22 } = useForm<LoginFormValues>();
23
24 const onSubmit: SubmitHandler<LoginFormValues> = ({
25 username,
26 password,
27 remember,
28 }) => {
29 setUser({ name: username });
30 };
31
32 return (
33 <div className={styles.container}>

Callers 2

onFormSubmitFunction · 0.50
onFormSubmitFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected