aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-27 20:46:55 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit30a86db0dcd00583f76c333127028c314d98b4fc (patch)
tree0e548d6cc54008c243064c5c2bf3700a16937118 /vnext/src/index.js
parentdc3d01eb2de90fd504b1c8b95579dcb24ecb2158 (diff)
Use `react-router-v5-compat`
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r--vnext/src/index.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index cdb592e8..be2dfeb1 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -1,6 +1,7 @@
import { StrictMode, lazy, Suspense } from 'react';
import ReactDOM from 'react-dom';
-import { BrowserRouter } from 'react-router-dom';
+import { BrowserRouter } from "react-router-dom";
+import { CompatRouter } from "react-router-dom-v5-compat";
import { CookiesProvider } from 'react-cookie';
import './index.css';
@@ -20,7 +21,9 @@ const JuickApp = () => (
<Suspense fallback={LoadingView()}>
<CookiesProvider>
<BrowserRouter>
- <Juick />
+ <CompatRouter>
+ <Juick />
+ </CompatRouter>
</BrowserRouter>
</CookiesProvider>
</Suspense>