File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ You can then use the reCAPTCHA. The default require, imports a wrapped component
2121
2222``` jsx
2323var React = require (" react" );
24- var ReCATPCHA = require (" react-google-recaptcha" );
24+ var ReCAPTCHA = require (" react-google-recaptcha" );
2525
2626function onChange (value ) {
2727 console .log (" Captcha value:" , value);
2828}
2929
3030React .render (
31- < ReCATPCHA
32- refs = " recaptcha"
31+ < ReCAPTCHA
32+ ref = " recaptcha"
3333 sitekey= " Your client site key"
3434 onChange= {onChange}
3535/ > , document .body );
@@ -61,7 +61,7 @@ You can also use the barebone components doing the following. Using that compone
6161
6262``` jsx
6363var React = require (" react" );
64- var ReCATPCHA = require (" react-google-recaptcha/lib/recaptcha" );
64+ var ReCAPTCHA = require (" react-google-recaptcha/lib/recaptcha" );
6565
6666var grecaptchaObject = grecaptcha // You must provide access to the google grecaptcha object.
6767
@@ -70,8 +70,8 @@ function onChange(value) {
7070}
7171
7272React .render (
73- < ReCATPCHA
74- refs = " recaptcha"
73+ < ReCAPTCHA
74+ ref = " recaptcha"
7575 sitekey= " Your client site key"
7676 onChange= {onChange}
7777 grecaptcha= {grecaptchaObject}
You can’t perform that action at this time.
0 commit comments