diff options
Diffstat (limited to 'vnext/src')
-rw-r--r-- | vnext/src/index.js | 18 |
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')); |