No Description

index.tsx 858B

1234567891011121314151617181920212223
  1. import React from 'react';
  2. import { createRoot } from 'react-dom/client';
  3. import App from './App';
  4. import * as serviceWorkerRegistration from './serviceWorkerRegistration';
  5. import reportWebVitals from './reportWebVitals';
  6. const container = document.getElementById('root');
  7. const root = createRoot(container!);
  8. root.render(
  9. <React.StrictMode>
  10. <App />
  11. </React.StrictMode>
  12. );
  13. // If you want your app to work offline and load faster, you can change
  14. // unregister() to register() below. Note this comes with some pitfalls.
  15. // Learn more about service workers: https://cra.link/PWA
  16. serviceWorkerRegistration.unregister();
  17. // If you want to start measuring performance in your app, pass a function
  18. // to log results (for example: reportWebVitals(console.log))
  19. // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
  20. reportWebVitals();