A npm plugin for kommunicates' chat widget.
npm i @kommunicate/kommunicate-chatbot-plugin
In your index.js file,
- Import the widget as Kommunicate.
- Add
Kommunicate.init("YOUR_APP_ID" , {...optionalSettings})
outsideReactDOM.render()
- Replace YOUR_APP_ID with APP_ID provided to you by Kommunicate. You can get your APP_ID from here
import Kommunicate from '@kommunicate/kommunicate-chatbot-plugin';
Kommunicate.init("YOUR_APP_ID" , {...optionalSettings})
ReactDOM.render(
...
<App />
...
document.getElementById('root')
);