Today I found out something interesting when I worked with form validation with react-hook-form .
react-hook-form
Here are the code.
const Test = ({ offerStartDate, register, getValues, setValue, errors,}) => {