Tech
Google reCAPTCHA v2 and v3 in React, Vue, or Angular, with one prop
Every time I add Google reCAPTCHA to a form I end up rewriting the same glue: load the script exactly once, register and clean up global callbacks, handle the token expiring, and remember that v2 and v3 work nothing alike. So I packaged it into three tiny libraries, one per framework, with the same API:
recaptcha-react
recaptcha-vue
recaptcha-angular
They are zero-dependency, fully typed, tested, and MIT. The part I am happiest with: you switch between v2 and v3 with a...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to