
Description
react-google-recaptcha is a React component wrapper for Google reCAPTCHA v2. It is a fork of an earlier react-google-recaptcha project, changed to support Google's enterprise reCAPTCHA. The default usage imports a wrapped component that loads the Google reCAPTCHA script asynchronously and creates a reCAPTCHA widget that the user can interact with. To use it, you sign up for a reCAPTCHA API key pair and pass the client key to the component as sitekey. Props include onChange, which runs when the user completes the challenge, onErrored for failed challenges, most often caused by network issues, and onExpired for challenges that have to be redone. The size prop accepts compact, normal or invisible, and badge sets where the badge sits for an invisible captcha. The hl prop sets the language, and isolated keeps the widget separate on pages that already run another reCAPTCHA.…
Highlights
- React wrapper for Google reCAPTCHA v2
- Compact, normal and invisible sizes
- Callbacks for completion, errors and expiry
- Enterprise reCAPTCHA support
Ratings & Reviews
No ratings yet
Be the first to rate react-google-recaptcha-enterprise.
People also visit
react-google-recaptcha-enterprise FAQ
What is react-google-recaptcha?
A React component that wraps Google reCAPTCHA v2, forked to support Google's enterprise reCAPTCHA.
What do I need before using it?
A reCAPTCHA API key pair from Google. You pass the client key to the component as sitekey.
Does it support invisible captchas?
Yes. The size prop accepts invisible, and the badge prop sets where the badge appears.
What happens when a challenge expires?
The onExpired callback runs. By default it calls onChange with null to signal the expiry.
How do I install it?
The README has an installation section with the npm command.
What are the best react-google-recaptcha-enterprise alternatives?
Popular alternatives to react-google-recaptcha-enterprise include react-google-recaptcha, react-recaptcha and react-recaptcha-google. See all react-google-recaptcha-enterprise alternatives

















