aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-05-03 10:44:25 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commitb1c0688fe347a9bc832cb4be53ecf3b4f8d6477c (patch)
treef409372b1734322302f82b6283ed6562f05c04d6
parent23efa297c657f18caaf0d68e407fd0d9c7a00256 (diff)
React.StrictMode
-rw-r--r--vnext/src/index.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index 482591c9..99d44d2b 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -2,19 +2,21 @@ import React, { lazy, Suspense } from 'react';
import ReactDOM from 'react-dom';
function LoadingView(props) {
- return (
- <div id="content">
- <div className="lds-ripple"><div></div><div></div></div>
- </div>
- );
+ return (
+ <div id="content">
+ <div className="lds-ripple"><div></div><div></div></div>
+ </div>
+ );
}
const Juick = lazy(() => import('./App'));
const JuickApp = () => (
- <Suspense fallback={LoadingView()}>
- <Juick />
- </Suspense>
+ <React.StrictMode>
+ <Suspense fallback={LoadingView()}>
+ <Juick />
+ </Suspense>
+ </React.StrictMode>
);
ReactDOM.render(<JuickApp />, document.getElementById('wrapper'));