-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.tsx
More file actions
24 lines (22 loc) · 718 Bytes
/
Copy pathindex.tsx
File metadata and controls
24 lines (22 loc) · 718 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
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { LoggerProvider } from './contexts/LoggerContext';
import { SettingsProvider } from './contexts/SettingsContext';
import { InstrumentationProvider } from './contexts/InstrumentationContext';
const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error("Could not find root element to mount to");
}
const root = ReactDOM.createRoot(rootElement);
root.render(
<React.StrictMode>
<SettingsProvider>
<LoggerProvider>
<InstrumentationProvider>
<App />
</InstrumentationProvider>
</LoggerProvider>
</SettingsProvider>
</React.StrictMode>
);