evm-web3-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

EVM web3 hook npm package

This video guid through how to extract existing react project's hook and publish it onto npm, so it will be come available everywhere by installing the npm pacakge yarn add or npm install.

How to use

  1. npm install package
yarn add evm-web3-hooks
//or
npm install evm-web3-hooks
  1. Wrap the top level component by
import Web3Provider from "evm-web3-hook";

<Web3Provider>
  <App/>
</Web3Provider>
  1. Use global web3Context everywhere
const web3Context = useWeb3()
  1. The example EVM Dapp boilerplate

Release note

0.1.0

  • Add default value for web3Data (default chain id = 1)

/evm-web3-hooks/

    Package Sidebar

    Install

    npm i evm-web3-hooks

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    24.1 kB

    Total Files

    22

    Last publish

    Collaborators

    • happyeric77