We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0afdd7c + 990c7f2 commit 7c1d040Copy full SHA for 7c1d040
README.md
@@ -67,7 +67,7 @@ Example:
67
const recaptchaRef = React.createRef();
68
...
69
onSubmit = () ={
70
- const recaptchaValue = recaptchaRef.getValue();
+ const recaptchaValue = recaptchaRef.current.getValue();
71
this.props.onSubmit(recaptchaValue);
72
}
73
render() {
@@ -97,7 +97,7 @@ import ReCAPTCHA from "react-google-recaptcha";
97
98
99
ReactDOM.render(
100
- <form onSubmit={() => { captcha.execute(); }}>
+ <form onSubmit={() => { recaptchaRef.current.execute(); }}>
101
<ReCAPTCHA
102
ref={recaptchaRef}
103
size="invisible"
0 commit comments