1react-hook-form updated to 7.0.0 from 6.X.X and has breaking changes:
2
3You have to replace all ref={register} with {...register('value_name')}
4
5Version 6.X.X:
6
7<input ref={register({ required: true })} name="test" />
8
9Version 7.0.X:
10
11<input {...register('test', { required: true })} />