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