aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-05-05 10:40:16 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commit6ffdba946c8db14d09c95bb3d61d7095571d39b4 (patch)
tree52b910290085233bd667bdc15026d0c9d4b04083 /vnext/src/index.js
parent937539a35aac4cb0fb3541947d7256d650fa7b85 (diff)
Prepare to SSR
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r--vnext/src/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index 5f45ecc2..6cbb3c44 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -1,5 +1,6 @@
import React, { lazy, Suspense } from 'react';
import ReactDOM from 'react-dom';
+import { BrowserRouter } from 'react-router-dom';
import './index.css';
@@ -16,7 +17,9 @@ const Juick = lazy(() => import('./App'));
const JuickApp = () => (
<React.StrictMode>
<Suspense fallback={LoadingView()}>
- <Juick />
+ <BrowserRouter>
+ <Juick />
+ </BrowserRouter>
</Suspense>
</React.StrictMode>
);