2025-07-21 14:53:06 -04:00
|
|
|
import React from 'react';
|
|
|
|
|
import ReactDOM from 'react-dom/client';
|
|
|
|
|
import './index.css';
|
|
|
|
|
import App from './App';
|
|
|
|
|
import reportWebVitals from './reportWebVitals';
|
|
|
|
|
|
|
|
|
|
const root = ReactDOM.createRoot(
|
|
|
|
|
document.getElementById('root') as HTMLElement
|
|
|
|
|
);
|
|
|
|
|
root.render(
|
|
|
|
|
<React.StrictMode>
|
|
|
|
|
<App />
|
|
|
|
|
</React.StrictMode>
|
|
|
|
|
);
|
|
|
|
|
|
2025-07-22 19:52:39 -04:00
|
|
|
// Register service worker for PWA
|
|
|
|
|
if ('serviceWorker' in navigator) {
|
|
|
|
|
window.addEventListener('load', () => {
|
|
|
|
|
navigator.serviceWorker.register('/sw.js')
|
|
|
|
|
.then((registration) => {
|
|
|
|
|
console.log('SW registered: ', registration);
|
|
|
|
|
})
|
|
|
|
|
.catch((registrationError) => {
|
|
|
|
|
console.log('SW registration failed: ', registrationError);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-21 14:53:06 -04:00
|
|
|
// If you want to start measuring performance in your app, pass a function
|
|
|
|
|
// to log results (for example: reportWebVitals(console.log))
|
|
|
|
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
|
|
|
reportWebVitals();
|