@quyx/ui-react
v1.2.1
Published
React library for Quyx's integration
Downloads
8
Maintainers
Readme
Installation
Install the latest version with npm
:
npm install @quyx/ui-react
or with yarn
:
yarn add @quyx/ui-react
Getting Started
npm install @tonconnect/ui-react@^2.0.5 @quyx/ui-react
Using QuyxProvider
import React from 'react'
import ReactDOM from 'react-dom/client'
import { TonConnectUIProvider } from '@tonconnect/ui-react'
import { QuyxProvider } from '@quyx/ui-react'
import App from './App.tsx'
const url = 'link-to-your-site-manifest-here'
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<TonConnectUIProvider manifestUrl={url}>
<QuyxProvider pk={import.meta.env.QUYX_PK}>
<App />
</QuyxProvider>
</TonConnectUIProvider>
</React.StrictMode>
)
For more examples and usage, checkout the docs here