From 2ad0217ee4d9c32dcd0a97043efe989155751dd4 Mon Sep 17 00:00:00 2001 From: Haishan Date: Wed, 23 Sep 2020 19:47:08 +0800 Subject: build: upgrade deps --- src/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index 78b75f9..f031ef7 100644 --- a/src/app.js +++ b/src/app.js @@ -10,9 +10,7 @@ const rootEl = document.getElementById('app'); Modal.setAppElement(rootEl); -// ReactDOM.render(, rootEl); -const { createRoot } = ReactDOM; -const root = createRoot(rootEl); +const root = ReactDOM.unstable_createRoot(rootEl); root.render(); // eslint-disable-next-line no-console -- cgit v1.3.1