Skip to content

cameronbraid/preact-compat-react-google-recaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

preact-compat-react-google-recaptcha

Demonstration of an issue with react-google-recaptcha when using preact and preact-compat

usage :

npm i
npm run dev
google-chrome  http://localhost:8080/webpack-dev-server/

This demonstrates two issues :

a) the async loading of the recaptcha script takes a long time. There is a cancelled attempt to download https://www.google.com/recaptcha/api2/anchor?... then on the second attempt it succeeds and the recaptcha box is shown

b) once the captcha box is shown, any calls to setState causes the recaptcha box to dissapear - try entering something into the textbox, or complete the captcha

About

Demonstration of an issue with react-google-recaptcha when using preact and preact-compat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published