DEV Community
•
2026-07-28 22:54
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, test...