Replies: 1 comment
-
I'm not sure what the "right" answer is here but I did something like this:
and it works great. The function signature matches and we still get correct types for |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I want to use
handleSubmit
to controlevent.target.reset
.So we set up a callback onSubmit in
handleSubmit
as shown below. However, I can't get the event type to work.I tried
React.BaseSyntheticEvent
, but theonSubmit
parameter and the callback function I set forhandleSubmit
don't seem to match up well.Beta Was this translation helpful? Give feedback.
All reactions