-
Hey everybody. I'm pretty new to development and started building a React app where I am using Rainbow Kit with wagmi to connect to users' wallets. I'm made the wagmi client in my app bar component and using that across each route in my file. I was able to access the Account and Balance connected in the app bar component, but can't seem to do it outside of the component or export the data from that component itself. Am I structuring it wrong or should I make a new client in each file? Any tips or advice would be awesome! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You should create one |
Beta Was this translation helpful? Give feedback.
You should create one
client
(e.g. in the root of your app or in a separate file). Check out the examples to see how this is done.