React SDK
Overview
Installation
npm i @prophouse/sdk-reactyarn add @prophouse/sdk-reactpnpm i @prophouse/sdk-reactUsage
Provider
import { PropHouseProvider } from '@prophouse/sdk-react'
import { WagmiConfig, createClient } from 'wagmi'
import { getDefaultProvider } from 'ethers'
const client = createClient({
autoConnect: true,
provider: getDefaultProvider(),
});
const App = () => {
return (
<WagmiConfig client={client}>
<PropHouseProvider>
<MyComponent />
</PropHouseProvider>
</WagmiConfig>
)
}Hooks
Last updated