ton-ai-sdk
v2.1.20
Published
A SDK for Ton AI
Downloads
1,473
Readme
ton-ai-sdk
Install
npm install --save ton-ai-sdk
Usage
Init sdk in your App.jsx
import { TonAdInit } from 'ton-ai-sdk' const App= () => { useEffect(()=>{ TonAdInit( ) },[}) return <>....</> }
Use in your layout
import React, { Component } from 'react'
import {TonExchangeBanner} from 'ton-ai-sdk'
import 'ton-ai-sdk/dist/index.css'
class Example extends Component {
render() {
return <TonExchangeBanner exchangeId={'xxxx'} />
}
}
License
MIT © chenyusheng