react-google-recaptcha-hook
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -20,3 +20,3 @@ { | ||
"license": "MIT", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"files": [ | ||
@@ -23,0 +23,0 @@ "dist", |
@@ -11,3 +11,3 @@ # React Hook for Google reCAPTCHA V3 | ||
## Simeplest Example | ||
## Simplest Example | ||
@@ -34,5 +34,11 @@ ```javascript | ||
const { | ||
executeGoogleReCaptcha, // execute reCAPTCHA, return torken | ||
showGoogleReCaptcha, // show recaptcha-badge | ||
hideGoogleReCaptcha, // hide recaptcha-badge | ||
// execute reCAPTCHA with action, return torken | ||
// (action: string) => Promise<string> | ||
executeGoogleReCaptcha, | ||
// show recaptcha-badge | ||
// () => void | ||
showGoogleReCaptcha, | ||
// hide recaptcha-badge | ||
// () => void | ||
hideGoogleReCaptcha, | ||
} = useGoogleReCaptcha( | ||
@@ -39,0 +45,0 @@ `${YOUR_SITE_KEY}`, // your site key |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11771
58