The email validation in YUP is incorrect, which led us to install an additional package specifically for email validation. This is not an ideal solution.
The goal is to find a library that integrates seamlessly with react-hook-form and offers a comprehensive set of validation functions. This way, we can rely on a single library for all our validation needs.
The email validation in YUP is incorrect, which led us to install an additional package specifically for email validation. This is not an ideal solution.
The goal is to find a library that integrates seamlessly with react-hook-form and offers a comprehensive set of validation functions. This way, we can rely on a single library for all our validation needs.
Supported libraries: https://react-hook-form.com/get-started#schemavalidation:~:text=We%20also%20support%20schema%2Dbased%20form%20validation%20with%20Yup%2C%20Zod%20%2C%20Superstruct%20%26%20Joi%2C%20where%20you%20can%20pass%20your%20schema%20to%20useForm%20as%20an%20optional%20config.%20It%20will%20validate%20your%20input%20data%20against%20the%20schema%20and%20return%20with%20either%20errors%20or%20a%20valid%20result.