Installation
How to install @qubic.org/react and its peer dependencies.
bun add @qubic.org/reactnpm install @qubic.org/reactpnpm add @qubic.org/reactPeer dependencies
@qubic.org/react requires the following packages to be installed alongside it:
bun add react react-dom @qubic.org/types @qubic.org/crypto @qubic.org/rpcnpm install react react-dom @qubic.org/types @qubic.org/crypto @qubic.org/rpcpnpm add react react-dom @qubic.org/types @qubic.org/crypto @qubic.org/rpc| Package | Purpose |
|---|---|
react / react-dom | React 18 or later |
@qubic.org/types | Shared TypeScript types used across the SDK |
@qubic.org/crypto | Identity conversions used internally by hooks |
@qubic.org/rpc | RPC clients used internally by data hooks |
@qubic.org/react ships its own TanStack Query instance via QubicProvider. You do not need to install @tanstack/react-query separately unless you want to share a query client with other parts of your application.
React 18 or later is required. The hooks use concurrent-mode features and will not work correctly on React 17.