-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathindex.tsx
More file actions
31 lines (27 loc) · 844 Bytes
/
index.tsx
File metadata and controls
31 lines (27 loc) · 844 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
27
28
29
30
31
import React from 'react';
import ReactDOM from 'react-dom/client';
import '@fortawesome/fontawesome-free/css/fontawesome.min.css';
import '@fortawesome/fontawesome-free/css/solid.min.css';
import { marked } from 'marked';
import App from './App';
import { ErrorBoundary } from './components/ErrorBoundary';
import './index.css';
import { registerAppServiceWorker } from './services/pwa';
// Configure marked for markdown rendering with syntax highlighting
marked.setOptions({
gfm: true,
breaks: true,
});
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>
<ErrorBoundary>
<App />
</ErrorBoundary>
</React.StrictMode>
);
registerAppServiceWorker();