956303669 | a32fc2c | 2025-06-02 19:45:53 +0800 | [diff] [blame] | 1 | import React from 'react'; |
| 2 | import ReactDOM from 'react-dom/client'; |
| 3 | import './index.css'; |
| 4 | import App from './App'; |
| 5 | import reportWebVitals from './reportWebVitals'; |
| 6 | |
22301133 | 9e29215 | 2025-06-08 00:34:37 +0800 | [diff] [blame^] | 7 | const container = document.getElementById('root'); |
| 8 | if (!container) throw new Error('Failed to find root container element'); |
| 9 | const root = ReactDOM.createRoot(container); |
| 10 | |
956303669 | a32fc2c | 2025-06-02 19:45:53 +0800 | [diff] [blame] | 11 | root.render( |
| 12 | <React.StrictMode> |
| 13 | <App /> |
| 14 | </React.StrictMode> |
| 15 | ); |
| 16 | |
| 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(); |