A set of simple and useful hooks for react facilitating use of the Ethereum provider API
npm install @guchii/w3b
yarn add @guchii/w3b
pnpm add @guchii/w3b
See the usage from the demo app in the apps directory
const App = () => {
// call the useW3b hook on the top of your entry component
useW3b();
// you may now use the other hooks
return (
<>
...
</>
);
}
Uses ethers, zustand, and immer.js
This is my first library/package thing.
The hooks are working and usable, but I'd suggest using useDapp, It's feature complete and reliable.