How to import my bot in my React app?


I have a React App and a botpress in different folders. I want to import the bot in a component of my app but not via <script />, but as ‘require’ or ‘import’.

Is this possible? Do I need to put it into a class inside my project? Which is the best way to do this?