UNPKG

@wojtekmaj/react-recaptcha-v3

Version:

Integrate Google reCAPTCHA v3 with your React app

35 lines (23 loc) 1.07 kB
# @wojtekmaj/react-recaptcha-v3 Integrate Google reCAPTCHA v3 with your React app. ## tl;dr - Install by executing `npm install @wojtekmaj/react-recaptcha-v3` or `yarn add @wojtekmaj/react-recaptcha-v3`. - Import by adding `import { ReCaptchaProvider, ReCaptcha } from '@wojtekmaj/react-recaptcha-v3'`. - Use by wrapping your app in `<ReCaptchaProvider reCaptchaKey="…">`, then using `<ReCaptcha />` component. Use `onVerify` prop to get the token. ## User guide The documentation is in the making. Refer to [original project's documentation](https://github.com/t49tran/react-google-recaptcha-v3) for now. ## License The MIT License. ## Author <table> <tr> <td > <img src="https://avatars.githubusercontent.com/u/5426427?v=4&s=128" width="64" height="64" alt="Wojciech Maj"> </td> <td> <a href="https://github.com/wojtekmaj">Wojciech Maj</a> </td> </tr> </table> ## Thank you This project wouldn't be possible without the awesome work of [Duong Tran](https://github.com/t49tran) who created its original version. Thank you!