blob: c6392bb3a2265d05ff22c554a0f0d2a4898b4fd9 [file] [log] [blame]
956303669a32fc2c2025-06-02 19:45:53 +08001import React from 'react';
2import ReactDOM from 'react-dom/client';
3import './index.css';
4import App from './App';
5import reportWebVitals from './reportWebVitals';
6
223011339e292152025-06-08 00:34:37 +08007const container = document.getElementById('root');
8if (!container) throw new Error('Failed to find root container element');
9const root = ReactDOM.createRoot(container);
10
956303669a32fc2c2025-06-02 19:45:53 +080011root.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
20reportWebVitals();