forked from nishilfaldu/easy-rag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
26 lines (26 loc) · 894 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chatbot Test</title>
<script src="https://cdn.jsdelivr.net/npm/react/umd/react.development.js"></script>
<script src="https://cdn.jsdelivr.net/npm/react-dom/umd/react-dom.development.js"></script>
<script src="./dist/chatbot-sdk.js"></script>
<!-- Path to your bundled SDK -->
</head>
<body>
<h1>Chatbot Test Page</h1>
<div id="my-chatbot"></div>
<script>
console.log("Chatbot:", window.Chatbot);
// Use createRoot instead of render
const root = ReactDOM.createRoot(document.getElementById("my-chatbot"));
root.render(
React.createElement(window.Chatbot, {
botId: "your-bot-id", // Replace with a real bot ID
})
);
</script>
</body>
</html>