diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index 945f819..d179705 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -1,12 +1,7 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; import App from './App'; - +import { createRoot } from 'react-dom/client'; // Render the App component into the #root div -ReactDOM.render( - - - , - document.getElementById('root') -); +const container = document.getElementById('root'); +const root = createRoot(container); +root.render();