1.1.0 • Published 4 years ago
@wen-tools/react v1.1.0
Wen React
Wen Tools are under heavy development
React component to connect your users quickly
Getting Started
Wen React is a component that allows you to connect to wallets in 1 line of code in any React 18 app.
npm i @wen-tools/actions @wen-tools/react
# or
yarn add @wen-tools/actions @wen-tools/react
# or
pnpm i @wen-tools/actions @wen-tools/reactConnect users
Just render the kit component. It includes everything to connect to a wallet and right network.
import { ConnectButton } from "@wen-tools/react";
export default function Home() {
return (
<div>
<ConnectButton />
</div>
);
}Specify the network to use
All chains are supported, you only need to pass in the chain id (find them here).
import { ConnectButton } from "@wen-tools/react";
export default function Home() {
return (
<div>
<ConnectButton chainId="4" chainDisplayName="Rinkeby" />
</div>
);
}Reading wallet data
1.1.0
4 years ago
1.10.0-beta.6
4 years ago
1.10.0-beta.5
4 years ago
1.10.0-beta.4
4 years ago
1.10.0-beta.3
4 years ago
1.10.0-beta.2
4 years ago
1.10.0-beta.1
4 years ago
1.10.0-beta.0
4 years ago
1.0.10
4 years ago