dozoisch / dozoisch/react-google-recaptcha
How to use .getResponse in react typescript?
Open
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
Can't see in documentation how to validate .getResponse. And when I tried .getResponse() is not a function
```
const submitContactForm: any = async (e: MouseEvent) => {
e.preventDefault()
const recaptchaValue = recaptchaRef.current.getValue()
console.log(recaptchaValue.getResponse())
if (!recaptchaValue) {
setRecaptchaError(true)
}
}
```
In other libraries they have .getResponse why it is not available here?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.