when-am-i / files / src / main.tsx
main.tsx
| 1 | import React from 'react'; |
| 2 | import ReactDOM from 'react-dom/client'; |
| 3 | import App from './App'; |
| 4 | import { ErrorBoundary } from './components/ErrorBoundary'; |
| 5 | import { installGlobalErrorHandlers } from './utils/report'; |
| 6 | import './index.css'; |
| 7 | |
| 8 | installGlobalErrorHandlers(); |
| 9 | |
| 10 | ReactDOM.createRoot(document.getElementById('root')!).render( |
| 11 | <React.StrictMode> |
| 12 | <ErrorBoundary> |
| 13 | <App /> |
| 14 | </ErrorBoundary> |
| 15 | </React.StrictMode> |
| 16 | ); |