aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-15 22:12:21 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commitfbf01fe1c1fa00ea23b18f8bc602ccb4f0691a04 (patch)
tree0e8880ac24af30dd884acc7d13f388f0af303971 /vnext/src/index.js
parent0fa19d54799934b8f17c95939cb0722e06099327 (diff)
New JSX transform
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r--vnext/src/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index c9b9373a..cdb592e8 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -1,4 +1,4 @@
-import React, { lazy, Suspense } from 'react';
+import { StrictMode, lazy, Suspense } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { CookiesProvider } from 'react-cookie';
@@ -16,7 +16,7 @@ function LoadingView() {
const Juick = lazy(() => import('./App'));
const JuickApp = () => (
- <React.StrictMode>
+ <StrictMode>
<Suspense fallback={LoadingView()}>
<CookiesProvider>
<BrowserRouter>
@@ -24,7 +24,7 @@ const JuickApp = () => (
</BrowserRouter>
</CookiesProvider>
</Suspense>
- </React.StrictMode>
+ </StrictMode>
);
ReactDOM.hydrate(<JuickApp />, document.getElementById('app'));