()
| 6 | }); |
| 7 | |
| 8 | export default function App() { |
| 9 | const { register, handleSubmit } = useForm(); |
| 10 | const onSubmit = (data, event) => { |
| 11 | console.log(data); |
| 12 | }; |
| 13 | |
| 14 | return ( |
| 15 | <form onSubmit={handleSubmit(onSubmit)}> |
| 16 | <Input ref={register} name="firstName" /> |
| 17 | <Input ref={register} name="lastName" /> |
| 18 | |
| 19 | <button>Submit</button> |
| 20 | </form> |
| 21 | ); |
| 22 | } |
nothing calls this directly
no test coverage detected