How to pass useForm type to reusable component properly ? #1917
Unanswered
abdulazizkhatamov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
since I am using
anytype for InputField props, i am gettingTS7031: Binding element state, handleChange, handleBlur implicitly has an any type.type error... in my case, how I properly set types here ? you can check full code in github gist (below link).I have tried
type Form = ReturnType but it is solving current issue but causing more type errors in my form
Full code: https://gist.github.com/abdulazizkhatamov/e7c6fbbecf92c3acf54a7744c3b17f3d

Image:
Beta Was this translation helpful? Give feedback.
All reactions