ConceptPortal-public/rsconcept/frontend/src/main.tsx

20 lines
435 B
TypeScript
Raw Normal View History

import { createRoot } from 'react-dom/client';
2025-02-20 14:59:52 +03:00
import { scan } from 'react-scan';
2023-07-25 20:27:29 +03:00
2025-02-19 23:30:35 +03:00
import { GlobalProviders } from './app/GlobalProviders';
import { App } from './app';
2025-02-12 21:36:25 +03:00
import './index.css';
2023-07-15 17:46:19 +03:00
2025-02-20 14:59:52 +03:00
if (typeof window !== 'undefined') {
scan({
enabled: !!process.env.NODE_ENV && process.env.NODE_ENV === 'development'
});
}
createRoot(document.getElementById('root')!).render(
<GlobalProviders>
2023-07-15 17:46:19 +03:00
<App />
</GlobalProviders>
2023-12-28 14:04:44 +03:00
);