From a78261fee1483e447c3d162f2961aac7b5df65e8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 1 Aug 2022 17:47:56 -0700 Subject: Update dependencies --- modern/src/index.js | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'modern/src/index.js') diff --git a/modern/src/index.js b/modern/src/index.js index 2f5f509b..d89d917e 100644 --- a/modern/src/index.js +++ b/modern/src/index.js @@ -1,6 +1,6 @@ import 'typeface-roboto'; import React from 'react'; -import ReactDOM from 'react-dom'; +import { createRoot } from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; import { Provider } from 'react-redux'; import { CssBaseline, ThemeProvider, StyledEngineProvider } from '@mui/material'; @@ -16,25 +16,24 @@ import ServerProvider from './ServerProvider'; preloadImages(); -ReactDOM.render( - ( - - - - - - - - - - - - - - - - - ), document.getElementById('root'), +const root = createRoot(document.getElementById('root')); +root.render( + + + + + + + + + + + + + + + + , ); serviceWorkerRegistration.register(); -- cgit v1.2.3