react-recaptcha icon indicating copy to clipboard operation
react-recaptcha copied to clipboard

Multiple Instances

Open WoadWork opened this issue 7 years ago • 1 comments

I have 2 separate modals and want to use reCaptcha in each.

I am able to successfully render reCaptcha in 1 modal but am not able to render both.

How do I render multiple instances of reCaptcha ?

Issue solved:

Define elementID(as prop of reCaptcha component) of each individual instance.

WoadWork avatar Nov 01 '17 10:11 WoadWork

<Recaptcha elementID='mobile' verifyCallback={ ()=> this.recaptchaVerified() } sitekey="xxxx" render="explicit" onloadCallback={()=> {console.log('recaptcha loaded')}} expiredCallback={() => this.setState({recaptchaVerified: false})}/>

i wrote like this and it is still not working

yasserzubair avatar Mar 29 '18 07:03 yasserzubair