From ad2a69d1178abf7c1ea73c4639dc1e6a7e57bef5 Mon Sep 17 00:00:00 2001 From: Thomas Uster Date: Mon, 26 Jun 2023 10:56:49 -0700 Subject: [PATCH] Update www/app/App.tsx --- www/app/App.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/www/app/App.tsx b/www/app/App.tsx index c6cd8d6d..be93c992 100644 --- a/www/app/App.tsx +++ b/www/app/App.tsx @@ -1,6 +1,6 @@ /// import * as React from 'react'; -import * as ReactDOM from 'react-dom'; +import { createRoot } from 'react-dom/client'; import * as Blueprint from '@blueprintjs/core'; import Main from './components/Main'; import * as Alert from './Alert'; @@ -12,8 +12,9 @@ Csrf.load().then((): void => { Alert.init(); Event.init(); - ReactDOM.render( + const container = document.getElementById('app'); + const root = createRoot(container); + root.render(
, - document.getElementById('app'), ); -}); +}); \ No newline at end of file