diff options
author | Vitaly Takmazov | 2022-10-29 21:22:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | dcc082891b1090c77b412d5139d8b70ed50bdb36 (patch) | |
tree | 6137f8b9dedf8e1bc01a1c07829600db8f0df071 | |
parent | d76d9ed280b7f73cdcc943e1fce3d2b600e5fdde (diff) |
Enable `lazy` back
-rw-r--r-- | vnext/src/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js index 59365d37..8064dd1f 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -1,10 +1,11 @@ -import { StrictMode } from 'react'; +import { StrictMode, lazy } from 'react'; import { hydrateRoot } from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; import { CookiesProvider } from 'react-cookie'; import './index.css'; -import Juick from './App'; + +const Juick = lazy(() => import('./App')); const props = window.__PROPS__ ? JSON.parse(window.atob(window.__PROPS__)) : {}; |