QubicTypeScript

Installation

How to install @qubic.org/react and its peer dependencies.

bun add @qubic.org/react
npm install @qubic.org/react
pnpm add @qubic.org/react

Peer 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/rpc
npm install react react-dom @qubic.org/types @qubic.org/crypto @qubic.org/rpc
pnpm add react react-dom @qubic.org/types @qubic.org/crypto @qubic.org/rpc
PackagePurpose
react / react-domReact 18 or later
@qubic.org/typesShared TypeScript types used across the SDK
@qubic.org/cryptoIdentity conversions used internally by hooks
@qubic.org/rpcRPC 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.

On this page