index.tsx
1 import { Suspense } from "react"; 2 import { createRoot } from "react-dom/client"; 3 //import "./index.css"; 4 import App from "./App"; 5 import reportWebVitals from "./reportWebVitals"; 6 7 const container = document.getElementById("root"); 8 const root = createRoot(container!); // createRoot(container!) if you use TypeScript 9 root.render( 10 <Suspense fallback={null}> 11 <App /> 12 </Suspense>, 13 ); 14 15 // If you want to start measuring performance in your app, pass a function 16 // to log results (for example: reportWebVitals( 17 // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 18 reportWebVitals();