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

Function MyInput

examples/V6/customInput.tsx:14–21  ·  view source on GitHub ↗
({ name, label, register })

Source from the content-addressed store, hash-verified

12];
13
14const 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
23export default function App() {
24 const { register, handleSubmit, setValue } = useForm();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected