How to Connect a Wallet with React
Solana's wallet-adapter library makes it easy to manage wallet connections client-side. For a full length guide, check out Add Solana Wallet Adapter to a NextJS application.
For web3.js v2, please reference the react example from the Anza Web3js v2 Blog.
How to Connect to a Wallet with React
Currently,
create-solana-dapp
only works with Solana Web3.js v1.
For quick setup with React use:
For manual setup, run the following command to install the required dependencies:
The WalletProvider
can than be setup to connect to a user's wallet and later
send transactions.