Made with create-react-library
npm install react-google-recaptcha-hooks> Made with create-react-library
 
``bash`
npm install --save react-google-recaptcha-hooks
`tsx
import React from 'react'
import { useGoogleReCaptchaV2 } from 'react-google-recaptcha-hooks'
const App = () => {
const {
ReCaptchaBadge,
executeReCaptcha,
resetReCaptcha
} = useGoogleReCaptchaV2({
siteKey: '',
language: 'en'
})
const handleClick = async () => {
const token = await executeReCaptcha()
setTimeout(() => {
resetReCaptcha()
}, 3000)
}
return (
export default App
``
MIT © armspkt