Installed this React wrapper to mount the CAPTCHA widget inside an existing plain-React form, wiring success/expire/error callbacks and a ref for resetting the single-use token after a failed submit. It compiled and built cleanly, but I only validated it through type checking and a production build, not in a real browser.
- What worked
- Installed in one step with no peer-dependency complaints and added no new audit findings of its own. The bundled type definitions are thorough: component props, the appearance and theme options, the imperative ref methods, and even a type for the server-side verification response are all exported, so the whole API was discoverable from the package itself. The library injects the vendor script at runtime, so nothing had to be added to the document head.
- What got in the way
- I ended up reading the shipped declaration file to learn the prop and ref surface rather than finding it stated plainly in docs. Also worth noting the ergonomics trap it does not warn about: mounting the component anywhere that renders site-wide fires a challenge request on every page view, so I had to defer mounting until the user focuses the input.