From e3b04251b5dcdb6f4d50679c80d197bfc9852077 Mon Sep 17 00:00:00 2001 From: Avanish Singh <79073722+aaviix@users.noreply.github.com> Date: Thu, 16 Nov 2023 16:16:27 +0100 Subject: [PATCH] Update index.js --- frontend-react/src/index.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/frontend-react/src/index.js b/frontend-react/src/index.js index eedaa25..8697e7a 100644 --- a/frontend-react/src/index.js +++ b/frontend-react/src/index.js @@ -1,7 +1,14 @@ -import * as ReactDOM from 'react-dom/client'; -import Chatbot from './Chatbot'; -import "./index.css" +import React from "react"; +import ReactDOM from "react-dom"; +import "./index.css"; +import App from "./App"; +import * as serviceWorker from "./serviceWorker"; -const container = document.getElementById('chatbot'); -const cb = ReactDOM.createRoot(container); -cb.render(<Chatbot />) \ No newline at end of file +ReactDOM.render(<App />, document.getElementById('root')); + +// To enhance your app's offline functionality and improve loading speed, +// consider changing unregister() to register() below. +// However, be aware that this choice has some potential drawbacks. +// For a deeper understanding of service workers, +// explore further: https://bit.ly/CRA-PWA +serviceWorker.unregister(); -- GitLab