I want to implement frontend validation with either Yup or Joi.
From all the docs and articles that I've found, I've got to a couple of conclusions:
- Joi has better performance
- Joi is more popular for backend validation, while Yup is more popular for frontend validation
- Joi has a lack of support on the frontend
- Per official docs, Yup is leaner and built with client-side validation
- Yup bundle size is ~2.5 times smaller than Joi - link
However, I didn't manage to find what Joi lacks in terms of support compared to Yup?
Right now, from all of these conclusions, it's choosing to either have a smaller bundle or better performance.