![]() It allows you to add async, defer, nonce attributes to the script tag. You can customize the injected script tag with this prop. Try to make sure you only have one instance of the provider on a React tree and to place it as high (on the tree) as possible. Same thing applied when you use this library with framework such as Next.js or React Router and only want to include the script on a single page. It's to make sure you only have one instance of Google Recaptcha per page and it doesn't reload unecessarily when your components re-rendered. You should place it as high as possible in your React tree. Usually, your application only needs one provider. GoogleReCaptchaProvider's responsibility is to load the necessary reCaptcha script and provide access to reCaptcha to the rest of your application. React-google-recaptcha-v3 provides a GoogleReCaptchaProvider provider component that should be used to wrap around your components. The complete documentation to the enterprise version you can see here. To work properly, you must select the Integration type to be Scoring since is equivalent to the reCAPTCHA v3. These keys will replace any Site Keys you created in reCAPTCHA. When you enable to use the enterprise version, you must create new keys. To use react-google-recaptcha-v3, you need to create a recaptcha key for your domain, you can get one from here. ![]() Npm install react-google-recaptcha-v3 Usage Provide Recaptcha Key
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |