@mixaspro/react
v1.0.1
Published
React hooks and components for FHEVM SDK
Maintainers
Readme
@fhevm-sdk/react
React hooks and components for FHEVM SDK.
Installation
npm install @fhevm-sdk/react
# or
pnpm add @fhevm-sdk/react
# or
yarn add @fhevm-sdk/reactUsage
import { FHEVMProvider, useFHEVM } from '@fhevm-sdk/react'
function App() {
return (
<FHEVMProvider>
<MyComponent />
</FHEVMProvider>
)
}
function MyComponent() {
const { isInitialized } = useFHEVM()
return <div>{isInitialized ? 'Ready' : 'Loading...'}</div>
}Features
- ✅ React 18+ support
- ✅ TypeScript strict mode
- ✅ Tree-shakeable
- ✅ Comprehensive hooks
- ✅ >90% test coverage
Documentation
Full documentation available at https://fhevm-sdk.dev
License
MIT © FHEVM SDK Contributors
