Expose public methods through component
Closed this issue · 0 comments
brdlyptrs commented
Since certain methods on the hCaptcha API work by passing in the captcha ID, these methods should also be exposed via the react component. Where the methods will proxy to the API, passing in the components ID to each method.
Methods
- getResponse
- getRespKey
- setData
Example Interaction
hcaptchaRef.current.getResponse();