Replies: 1 comment 2 replies
-
const formRef = useRef<HTMLFormElement>(null); |
Beta Was this translation helpful? Give feedback.
2 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.
-
Has anyone used email js with react and typescript, I keep getting an error with the useRef hook which says I need it to be set to HTMLFormElement. I gave the useRef hook the type it siad it wanted but still got an error. Does anyone have a solution or fix for this?
Error:
The 3rd parameter is expected to be the HTML form element or the style selector of form
Beta Was this translation helpful? Give feedback.
All reactions