Steps to integrate Web SDK NPM into react

To integrate our bot with react app, first we need to use grunt on the WebSdk files, which will give us the minified css and js files.

Now with these files, run the below command, to create a tar.gz file

tar -c --exclude .git -f - <folder_name> | gzip > <folder_name>.tar.gz

Run the below command in the client code base to install the Web SDK.

npm i <folder_name>

These below lines should be added in the react codebase to open the chatbot

In webpack.common.js file of the project, add as below:

Hope this helps!!! :smiley: