/ index.tsx
index.tsx
 1  import React from 'react';
 2  import ReactDOM from 'react-dom/client';
 3  import './index.css';
 4  import App from './App';
 5  
 6  const rootElement = document.getElementById('root');
 7  if (!rootElement) {
 8    throw new Error("Could not find root element to mount to");
 9  }
10  
11  const root = ReactDOM.createRoot(rootElement);
12  root.render(
13    <React.StrictMode>
14      <App />
15    </React.StrictMode>
16  );