This document provides a comprehensive reference for the @bigmi/react package, which contains React hooks and components for building Bitcoin applications.
The main provider component that enables Bigmi functionality in your React application.
import { BigmiProvider } from '@bigmi/react'
import { createConfig, phantom, xverse, binance } from '@bigmi/client'
import { bitcoin } from '@bigmi/core'
const config = createConfig({
chains: [bitcoin],
connectors: [phantom(), binance(), okx()]
})
function App() {
return (
<BigmiProvider
config={config}
>
<YourApp />
</BigmiProvider>
)
}config: Configuration objectinitialState?: initial state objectreconnectOnMount?: boolean
This packages comes with react hooks to make it easy to use in your application
- Explore the react hooks
- Learn about the Core API