Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
react-hcaptcha
Advanced tools
hCaptcha Component Library for ReactJS.
hCaptcha is an easy to use replacement for reCaptcha that helps monetize your website.
Sign up at hCaptcha to get your sitekey today. You need a sitekey to use this captcha solution.
You can install this library via npm with:
npm install react-hcaptcha --save
<your-cool-form>
<hCaptcha :sitekey="**Your sitekey here**" onVerify={this.onVerifyCaptcha}></hCaptcha>
</your-cool-form>
The two required props are the sitekey and root component. The component will automatically include and load the hCaptcha API library and append it to the root component. This is designed for ease of use with the hCaptcha API!
Props include:
The component emits any events related to verification, and expiring. Simply catch these events in the parent component
ie: onVerify
, onExpire
, onError
and handle the events as you choose. The captcha will automatically reset on error, but still emit an error.
Please refer to the demo for examples of basic usage and an invisible Captcha.
FAQs
A React library for hCaptcha
The npm package react-hcaptcha receives a total of 213 weekly downloads. As such, react-hcaptcha popularity was classified as not popular.
We found that react-hcaptcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.