With React 16 and React-Router 4, I'm trying to using Botkit's embed code in a component, but it's just stuck in "Disconnected...reconnecting":
(I've removed the OnClick header and embedded_messenger divs as I want it to launch full-sized)
<div>
<iframe
title="botkit"
id="botkit_client"
src="//arrow-tarn.glitch.me/chat.html"
style={{ height: "80vh", width: "100%" }}
/>
<script src="//arrow-tarn.glitch.me/embed.js" />
<link rel="stylesheet" href="//arrow-tarn.glitch.me/css/embed.css" />
<script>var options = {}; Botkit.boot(options);</script>
</div>
);
When I run the app, I also get the following console error in Chrome:
GET http://arrow-tarn.glitch.me/%7B%7B%7Burl%7D%7D%7D 404 (Not Found)
Which of course translates unescaped to {{url}} not found.
I'm thinking it has to do with the initialization/options in React:
<script>var options = {}; Botkit.boot(options);</script>
Any clue what am I doing wrong?