easya-react
v0.0.7
Published
Quick guide to get started with EasyA SDK in your React application.
Readme
EasyA SDK Integration Guide
Quick guide to get started with EasyA SDK in your React application.
Installation
Install the EasyA SDK package in your React project:
npm install @easya/reactBasic Implementation
Here's a minimal example showing how to integrate the EasyA SDK with a connect button:
const App = () => {
return (
<EasyaSDK.BlockchainProvider config={blockchainConfig}>
<div style={{
minHeight: '100vh',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
textAlign: 'center'
}}>
<h1>My Web3 App</h1>
<EasyaSDK.ConnectButton />
</div>
</EasyaSDK.BlockchainProvider>
);
};