aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/index.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-07-27 16:34:14 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-07-27 16:34:14 +0200
commitdeaa0580d952b77cf9e6df024d1f71ed29f53fc0 (patch)
tree95a4e538b21c13674de99a6645bae1424714721a /subprojects/frontend/src/index.tsx
parentdocs: Add note about proxy settings (diff)
downloadrefinery-deaa0580d952b77cf9e6df024d1f71ed29f53fc0.tar.gz
refinery-deaa0580d952b77cf9e6df024d1f71ed29f53fc0.tar.zst
refinery-deaa0580d952b77cf9e6df024d1f71ed29f53fc0.zip
chore: bump dependencies
Diffstat (limited to 'subprojects/frontend/src/index.tsx')
-rw-r--r--subprojects/frontend/src/index.tsx13
1 files changed, 11 insertions, 2 deletions
diff --git a/subprojects/frontend/src/index.tsx b/subprojects/frontend/src/index.tsx
index 15b26adb..6cdbbd64 100644
--- a/subprojects/frontend/src/index.tsx
+++ b/subprojects/frontend/src/index.tsx
@@ -1,13 +1,16 @@
1import React from 'react'; 1import React from 'react';
2import { render } from 'react-dom'; 2import { createRoot } from 'react-dom/client';
3import CssBaseline from '@mui/material/CssBaseline'; 3import CssBaseline from '@mui/material/CssBaseline';
4 4
5import { App } from './App'; 5import { App } from './App';
6import { RootStore, RootStoreProvider } from './RootStore'; 6import { RootStore, RootStoreProvider } from './RootStore';
7import { ThemeProvider } from './theme/ThemeProvider'; 7import { ThemeProvider } from './theme/ThemeProvider';
8import { getLogger } from './utils/logger';
8 9
9import './index.scss'; 10import './index.scss';
10 11
12const log = getLogger('index');
13
11const initialValue = `class Family { 14const initialValue = `class Family {
12 contains Person[] members 15 contains Person[] members
13} 16}
@@ -66,4 +69,10 @@ const app = (
66 </RootStoreProvider> 69 </RootStoreProvider>
67); 70);
68 71
69render(app, document.getElementById('app')); 72const rootElement = document.getElementById('app');
73if (rootElement === null) {
74 log.error('Root element not found');
75} else {
76 const root = createRoot(rootElement);
77 root.render(app);
78}