Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanilla JS doc uses React hooks #230

Closed
ethan-tqa opened this issue Jan 3, 2025 · 2 comments
Closed

Vanilla JS doc uses React hooks #230

ethan-tqa opened this issue Jan 3, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@ethan-tqa
Copy link

Describe the bug

The relevant document page is here.
In the Smart Contract Interaction section, the example code uses hook that are only available in React, specifically useAppKitAccount and useAppKitProvider.
Further more, up on checking the source code, I think the example usage of useAppKitProvider is incorrect too, as useAppKitProvider does not include a connection member in the returned object.

@souvikmishra
Copy link
Contributor

@ethan-tqa this might be of help reown-com/appkit#3468

@rtomas
Copy link
Collaborator

rtomas commented Jan 29, 2025

I have just improved them !
#273

Also you can check our new examples
https://github.com/reown-com/appkit-web-examples/

@rtomas rtomas closed this as completed Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants