Typescript error when setting data using setData inside onChange handler #1316
Unanswered
briantuju
asked this question in
Help (React)
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.
-
Hello. I'm getting the following error when trying to set the form data inside an onChange event handler.
TS2345: Argument of type 'string' is not assignable to parameter of type 'keyof FormProps
I'm trying to implement an onChange event handler but can't get it to work no matter what I try (I'm still new to TypeScript)
Beta Was this translation helpful? Give feedback.
All reactions