Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Guchii/w3b

Repository files navigation

A set of simple and useful hooks for react facilitating use of the Ethereum provider API

⚙ Installation️

npm install @guchii/w3b
yarn add @guchii/w3b
pnpm add @guchii/w3b

🧠 Usage

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

PS

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.