I am almost finished the tutorial :D all is awesome, question, I should use propTypes instead of yup for the for validation? why not use propTypes like ractJs?
seems harder/exactly the same as just writing your own function tbh. I already have a bad habit of using a package for everything >_> don't want to add to that; cool to know it exists though, thanks
Think that you should add that you're using Formik in your title. Just looking for a video using Yup only and every single video tutorial on Yup is also using Formik unfortunately.
I depends on the package, wether its locally installed (on the project) or globally (on your system). So for example, you would have to install Yup on every new project, but if you install create-react-app globally you are able to run the create-react-app from anywhere on your system
UPDATED IN 23-09-2021
*LATEST CODE/UPDATED YUP : const reviewSchema = yup.object().shape
VIDOE CODE/OLD YUP: const reviewSchema = yup.object*
thanks
These tutorials are extremely helpful and I really appreciate how well you explain everything. Thank you so much!
Cant stop applausing! Just perfect!
Holy cow this is so well taught
I am almost finished the tutorial :D all is awesome, question, I should use propTypes instead of yup for the for validation? why not use propTypes like ractJs?
Really appreciate your work!! I'll go to the end
how yup knows which key corresponds to which formik field? Since TextInput doesn't have name property....?
seems harder/exactly the same as just writing your own function tbh. I already have a bad habit of using a package for everything >_> don't want to add to that; cool to know it exists though, thanks
why is it a bad habit? it's there to make your life a bit easier xD
Complex forms require complex validation solutions. Yup is a great tool in these instances.
I'm creating a app for the google play store, will using this package (Yup) have its downfalls in the future of the app?
Think that you should add that you're using Formik in your title. Just looking for a video using Yup only and every single video tutorial on Yup is also using Formik unfortunately.
Quick question: When you instal YUP, Formik and so on, you just need to do it once or every time you create a new project?
I depends on the package, wether its locally installed (on the project) or globally (on your system). So for example, you would have to install Yup on every new project, but if you install create-react-app globally you are able to run the create-react-app from anywhere on your system
thank you
Anyone know how to fix this error? only with .min(val)
TypeError: yup.string().required.min is not a function.
it must be like this yup.string().required().min()
2nd, cho
using type script or js?