Input validation using yup #2132
Answered
by
abdhalees
manuel-subredu
asked this question in
Q&A
-
Is it possible to use yup validation for Form fields provided by CloudScape ? Without CloudScape, code is something like:
If I try the same approach using Input, when I try to update the value from the browser I get:
|
Beta Was this translation helpful? Give feedback.
Answered by
abdhalees
Apr 19, 2024
Replies: 1 comment
-
Hello Manuel, from your code it looks like you're using
and then you can follow this example from ReactHookForm to how to integrate yup with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Al-Dani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello Manuel,
from your code it looks like you're using
react-hook-form
, instead of usingregister
you can use controller, so your component will look like this: