You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// include type check against field path with the name you have supplied.
258
+
259
+
<input
260
+
onChange={onChange} // assign onChange event
261
+
onBlur={onBlur} // assign onBlur event
262
+
name={name} // assign name prop
263
+
ref={ref} // assign ref prop
264
+
/>
265
+
// same as above
266
+
<input {...register('firstName')} />
267
+
```
268
+
269
+
#### Custom Register
270
+
271
+
You can also register inputs with `useEffect` and treat them as virtual inputs. For controlled components, we provide a custom hook [useController](/docs/usecontroller) and [Controller](/docs/usecontroller/controller) component to take care this process for you.
272
+
273
+
If you choose to manually register fields, you will need to update the input value with [setValue](/docs/useform/setvalue).
0 commit comments