I have seen this example in the react-hook-form documentation https://react-hook-form.com/api/useform/register Custom onChange, onBlur
const firstName = register('firstName', { required: true })
<input
onChange={(e) => {
firstName.onChange(e); // method from hook form register
handleChange(e); // your method
}}
onBlur={firstName.onBlur}
ref={firstName.ref}
/>
Here there is no name="firstName" inside <input>
So will this work without mentioning name prop?