forked from Disciplr-Org/Disciplr-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tsx
More file actions
26 lines (24 loc) · 779 Bytes
/
Copy pathmain.tsx
File metadata and controls
26 lines (24 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App'
import './index.css'
import { reportWebVitals } from './utils/reportWebVitals'
// Report web vitals in production or when a reporter is provided
// In development, this defaults to a no-op unless explicitly configured
if (import.meta.env.PROD) {
reportWebVitals((metric) => {
// In production, you can send metrics to your analytics service
// Example: sendToAnalytics(metric)
console.log('[Web Vitals]', metric)
})
} else {
// In development, report to console for debugging
reportWebVitals((metric) => {
console.log('[Web Vitals]', metric)
})
}
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
</StrictMode>,
)