Skip to main content

Recommended: JavaScript SDK with React Hooks

For new React apps, we recommend the JavaScript SDK with React Hooks (@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.

Prerequisites

  • A Dynamic account and project (with Ethereum enabled)
  • React application setup

Installation

Install the required dependencies:

Setup Dynamic Provider

First, set up the Dynamic provider in your React application:

Create a Dynamic Integration Hook

Create a custom hook that integrates Dynamic wallets with Rhinestone accounts. This demonstrates the core pattern: get the wallet client, then pass it to Rhinestone.

Usage

Basic Component Integration

Use the hook in your React components:

Cross-Chain Transactions

Send transactions using the Dynamic-connected wallet:

Environment Variables

Make sure to set the following environment variables:

Next Steps

Last modified on June 25, 2026