How do I use viem in React app? #219
Answered
by
jxom
AndreinNguyen
asked this question in
Question
-
I have some confuse about Viem and Wagmi. Should I use both in a React application or not? |
Beta Was this translation helpful? Give feedback.
Answered by
jxom
Mar 15, 2023
Replies: 1 comment 1 reply
-
wagmi is primarily for dapps & wallets – a high-level and stateful interface for Ethereum (React Hooks, Vanilla JS, etc). viem is primarily for libraries, tooling, server-side dev, scripting, etc – a low-level and stateless interface for Ethereum. I would use wagmi for a React application. Soon, wagmi will port from ethers.js to viem internally. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jxom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wagmi is primarily for dapps & wallets – a high-level and stateful interface for Ethereum (React Hooks, Vanilla JS, etc).
viem is primarily for libraries, tooling, server-side dev, scripting, etc – a low-level and stateless interface for Ethereum.
I would use wagmi for a React application. Soon, wagmi will port from ethers.js to viem internally.