# Get started with React

Source: https://docs.lazorkit.com/react-sdk/getting-started



Use this guide for a React app that already has Protocol wallets. For new wallets, start with the [TypeScript quickstart](/web3js-v1/getting-started).

## Install

```bash
npm install @lazorkit/wallet@3.4.1 @solana/web3.js@^1.99.0
```

## Configure the provider

Put the provider in a client component. Pass your app's existing Protocol paymaster URL and the portal origin used to register the passkey.

```tsx
'use client';

import type { ReactNode } from 'react';
import { LazorkitProvider } from '@lazorkit/wallet';

export function ProtocolProvider({ children, portalUrl, protocolPaymasterUrl }: {
  children: ReactNode;
  portalUrl: string;
  protocolPaymasterUrl: string;
}) {
  const paymaster = { paymasterUrl: protocolPaymasterUrl };

  return (
    <LazorkitProvider
      cluster="mainnet"
      rpcUrl="https://api.mainnet-beta.solana.com"
      portalUrl={portalUrl}
      paymasterConfig={paymaster}
      v1PaymasterConfig={paymaster}
    >
      {children}
    </LazorkitProvider>
  );
}
```

## Reconnect and send

Call `useWallet().connect()` from a user action in your returning-user flow. Confirm the result is the Protocol wallet your app already knows. Read `vaultPubkey` to display a receive address.

Next, [send a transaction](/react-sdk/sending-transactions) or check [provider options](/react-sdk/provider).
