Skip to content

feat(hooks): Add Provider/Hook pattern - #323

Merged
joao-imi merged 15 commits into
masterfrom
hooks
Dec 8, 2025
Merged

joao-imi merged 15 commits into
masterfrom
hooks

Conversation

@joao-imi

@joao-imi joao-imi commented Dec 2, 2025 •

Copy link
Copy Markdown
Contributor

Adds a new Provider/Hook pattern as an alternative API for using hCaptcha in React applications.

Demo:

demo.mov

@joao-imi joao-imi self-assigned this Dec 2, 2025
@joao-imi
joao-imi requested a review from a team as a code owner December 2, 2025 16:29
Comment thread src/hooks/Provider.jsx Resolved
Comment thread src/hooks/Provider.jsx Resolved
Comment thread src/hooks/Provider.jsx Resolved
Comment thread src/hooks/Provider.jsx Resolved
@joao-imi
joao-imi requested a review from brdlyptrs December 2, 2025 18:59
Comment thread src/hooks/Provider.jsx Resolved
Comment thread src/hooks/Provider.jsx Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
@brdlyptrs

brdlyptrs commented Dec 3, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you @joao-imi, example and documentation are good. Can you make sure to bump the version? Also please add some tests, once you have a moment.

@joao-imi
joao-imi requested a review from brdlyptrs December 3, 2025 13:43
@joao-imi

joao-imi commented Dec 3, 2025

Copy link
Copy Markdown
Contributor Author

Thank you @joao-imi, example and documentation are good. Can you make sure to bump the version? Also please add some tests, once you have a moment.

@brdlyptrs tests added and bumped version accordingly! Thank you!

@brdlyptrs

Copy link
Copy Markdown
Collaborator

Looks good @joao-imi Can you add tests to verify that the token and error update as well?

@joao-imi

joao-imi commented Dec 4, 2025

Copy link
Copy Markdown
Contributor Author

Looks good @joao-imi Can you add tests to verify that the token and error update as well?

Done @brdlyptrs!

@joao-imi
joao-imi merged commit a470bdf into master Dec 8, 2025
4 checks passed
@joao-imi
joao-imi deleted the hooks branch December 8, 2025 13:20
@fatraseptian6-tech fatraseptian6-tech mentioned this pull request Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants