1.0.1 • Published 6 years ago
@gpetrov/react-botui v1.0.1
react-botui
Simple wrapper around botui
Install
npm install --save @gpetrov/react-botui
Usage
import React, { Component } from 'react'
import BotUI from 'react-botui'
class Example extends Component {
componentDidMount() {
const botui = new window.BotUI('botui-app')
botui.message.bot({ delay: 200, content: 'hello' })
}
render() {
return <BotUI id="botui-app" />
}
}
License
MIT © gmpetrov