({ name, label, register })
| 12 | ]; |
| 13 | |
| 14 | const MyInput = ({ name, label, register }) => { |
| 15 | return ( |
| 16 | <> |
| 17 | <label htmlFor={name}>{label}</label> |
| 18 | <input name={name} placeholder="Jane" ref={register} /> |
| 19 | </> |
| 20 | ); |
| 21 | }; |
| 22 | |
| 23 | export default function App() { |
| 24 | const { register, handleSubmit, setValue } = useForm(); |
nothing calls this directly
no outgoing calls
no test coverage detected