summaryrefslogtreecommitdiff
path: root/src/app.js
diff options
context:
space:
mode:
authorHaishan <[email protected]>2020-09-23 19:47:08 +0800
committerHaishan <[email protected]>2020-10-12 20:42:41 +0800
commit2ad0217ee4d9c32dcd0a97043efe989155751dd4 (patch)
tree380deab2f882e31b78c6befbd31abcb5b2a2c4d3 /src/app.js
parent41213fd214676efd6e33d9f6b8f0fc088c9dddb7 (diff)
build: upgrade deps
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js4
1 files changed, 1 insertions, 3 deletions
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(<Root />, rootEl);
-const { createRoot } = ReactDOM;
-const root = createRoot(rootEl);
+const root = ReactDOM.unstable_createRoot(rootEl);
root.render(<Root />);
// eslint-disable-next-line no-console