Skip to main content
react-ton-x is a React library for building applications connected with Tonhub.
  • Wrap root component with the provider.
  • Store connection state.
  • Use useTonhubConnect hook without thinking about managing the connection state.

react-ton-x Installation

npm version

Usage of Local and Remote connectors

  • The local connector is used for creating a session from the Tonhub. See the Local Connector section for more details.
  • The remote connector is used for creating a session from your application or site. See the Remote Connector

Provider Properties

Example

Wrap your root component with TonhubConnectProvider
When use hook in any child component: