React SDK

thirdweb/react exports various Components and Hooks to easily connect wallets & interact with smart contracts

Quickstart

Follow this guide to get started with the React SDK.

Starter kits

You can quickly create a new project with the thirdweb CLI

npx thirdweb create app --legacy-peer-deps

or clone the the Next.js or Vite starter repo:

Usage

Many of the components and hooks in the React SDK use a client to interface with the core SDK and your private RPC endpoints. You'll need to create a clientId in the Dashboard to generate this client.